/** * @param array $numbers * @param Struct\ProductContextInterface $context * @return Struct\ListProduct[] */ public function getList(array $numbers, Struct\ProductContextInterface $context) { $getSortedNumbers = $this->sortingComponent->sortByNumber($numbers); $products = $this->coreService->getList($getSortedNumbers, $context); return $products; }