public function __construct(private readonly FakeSequenceSupervisor $sequenceSupervisor)
{
}
public function getSequenceCount(): int
{
return $this->sequenceCount;
}
public function getMatchingItems(LineItemGroupDefinition $groupDefinition, LineItemFlatCollection $items, SalesChannelContext $context): LineItemFlatCollection
{
$this->sequenceCount = $this->sequenceSupervisor->getNextCount();
return $items;
}
}