您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

23 行
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. }