/**
* @param array<array<string, mixed>> $products
*
* @return ListProduct[]
*/
private function buildListProducts(array
$products): array
{ $listProducts =
[];
foreach ($products as $product) { $listProduct =
new ListProduct($product['articleId'
],
$product['variantId'
],
$product['number'
]);
$listProduct->
setAdditional($product['additionalText'
]);
$listProducts[$product['number'
]] =
$listProduct;
} return $listProducts;
} /**
* @param array<array<string, mixed>> $products
*
* @return array<array<string, mixed>>
*/