distributionRotatingBuilder = $this->loadService(DistributionRotatingBuilder::class); } public function createDistributionRotating(Distribution $distribution, RotatingProduct $rotatingProduct): DistributionRotating { $distributionRotating = $this->distributionRotatingBuilder->instanciateDistributionRotating(); $distributionRotating ->setDistribution($distribution) ->setRotatingProduct($rotatingProduct); return $distributionRotating; } }