選択できるのは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. }