/** @var array{id: string, pattern: string, start: ?int}|false $config */
$config =
$this->connection->
fetchAssociative('
SELECT LOWER(HEX(`number_range`.`id`)) AS `id`, `number_range`.`pattern`, `number_range`.`start`
FROM number_range
INNER JOIN number_range_type ON number_range_type.id = number_range.type_id
WHERE `number_range_type`.`technical_name` = :typeName AND (number_range_type.global = 1 OR number_range.global = 1)
ORDER BY number_range.global ASC
',
['typeName' =>
$definition]);
} if (!
$config) { throw new NoConfigurationException($definition,
$salesChannelId);
} if ($config['start'
]) { $config['start'
] =
(int) $config['start'
];
} return $config;
} /**
* @param array{id: string, pattern: string, start: ?int} $config
* @param array<string> $parsedPattern
*/