You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 satır
724B

  1. <?php
  2. namespace domain\PointSale\SharedPointSale;
  3. use domain\_\AbstractManager;
  4. use domain\PointSale\PointSale\PointSale;
  5. use domain\Producer\Producer\Producer;
  6. class SharedPointSaleManager extends AbstractManager
  7. {
  8. protected SharedPointSaleBuilder $sharedPointSaleBuilder;
  9. public function loadDependencies(): void
  10. {
  11. $this->sharedPointSaleBuilder = $this->loadService(SharedPointSaleBuilder::class);
  12. }
  13. public function createSharedPointSale(PointSale $pointSale, Producer $producerWithSharing)
  14. {
  15. $sharedPointSale = $this->sharedPointSaleBuilder->instanciateSharedPointSale($pointSale, $producerWithSharing);
  16. $this->sharedPointSaleBuilder->create($sharedPointSale);
  17. }
  18. }