$listProducts =
$this->listProductService->
getList( $this->
extractNumbers($numbers),
$context );
$result =
[];
foreach ($products as $product) { if (!
isset($numbers[$product->
getId()])) { continue;
} $result[$product->
getNumber()] =
$this->
getProductsByNumbers( $listProducts,
$numbers[$product->
getId()] );
} return $result;
} /**
* @param ListProduct[] $products
* @param string[] $numbers
*
* @return array<string, ListProduct>
*/