if (!
empty($decodedSortings)) { $unserializedSortings =
$this->reflectionHelper->
unserialize($decodedSortings, ''
);
foreach ($unserializedSortings as $sorting) { if (!
$sorting instanceof SortingInterface
) { continue;
} $criteria->
addSorting($sorting);
} } $criteria->
offset((int) $offset);
$criteria->
limit($limit);
return $this->customerNumberSearch->
search($criteria);
} /**
* @param int $offset
* @param int $limit
* @param array<string, string>|array<array{property: string, value: mixed, expression?: string}> $criteria
* @param array<array{property: string, direction: string}> $orderBy
*
* @return array{success: true, data: array<array<string, mixed>>, total: int}
*/