src/Listener/TaxationFinishListener.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Listener;
  3. use App\Event\TaxationFinishEvent;
  4. use App\Service\Taxation\TaxationService;
  5. class TaxationFinishListener
  6. {
  7.     private TaxationService $taxationService;
  8.     public function __construct(
  9.         TaxationService $taxationService
  10.     )
  11.     {
  12.         $this->taxationService $taxationService;
  13.     }
  14.     public function onTaxationFinish(TaxationFinishEvent $event) : void
  15.     {
  16.         $this->taxationService->onTaxationFinish($event->getTaxation());
  17.     }
  18. }