private SalesChannelContext
$context;
/**
* @internal should not be used directly, loop over an ItemsFacade directly inside twig instead
*/
public function getIterator(): \ArrayIterator
{ $items =
[];
foreach ($this->
getItems() as $key =>
$item) { $items[$key] =
match ($item->
getType()) { LineItem::CONTAINER_LINE_ITEM =>
new ContainerFacade($item,
$this->priceStubs,
$this->helper,
$this->context
),
default =>
new ItemFacade($item,
$this->priceStubs,
$this->helper,
$this->context
),
};
} return new \
ArrayIterator($items);
} private function getItems(): LineItemCollection
{ return $this->items;
}}