Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- <?php
-
- namespace domain\Distribution\DistributionRotating;
-
- use domain\_\AbstractManager;
- use domain\Distribution\Distribution\Distribution;
- use domain\Product\RotatingProduct\RotatingProduct;
-
- class DistributionRotatingManager extends AbstractManager
- {
- protected DistributionRotatingBuilder $distributionRotatingBuilder;
-
- public function loadDependencies(): void
- {
- $this->distributionRotatingBuilder = $this->loadService(DistributionRotatingBuilder::class);
- }
-
- public function createDistributionRotating(Distribution $distribution, RotatingProduct $rotatingProduct): DistributionRotating
- {
- $distributionRotating = $this->distributionRotatingBuilder->instanciateDistributionRotating();
- $distributionRotating
- ->setDistribution($distribution)
- ->setRotatingProduct($rotatingProduct);
- return $distributionRotating;
- }
- }
|