public function __construct( private readonly string
$promotionId,
AbstractSalesChannelContextFactory
$salesChannelContextFactory,
private readonly EntityRepository
$promotionRepository,
private readonly EntityRepository
$promotionSetgroupRepository,
private readonly EntityRepository
$promotionDiscountRepository ) { $this->dataSetGroups =
[];
$this->dataDiscounts =
[];
$this->context =
$salesChannelContextFactory->
create(Uuid::
randomHex(), TestDefaults::SALES_CHANNEL
);
} public function setCode(string
$code): PromotionFixtureBuilder
{ $this->code =
$code;
return $this;
} public function addDiscount( string
$scope,