<?php
namespace App\Listener;
use App\Event\TaxationFinishEvent;
use App\Service\Taxation\TaxationService;
class TaxationFinishListener
{
private TaxationService $taxationService;
public function __construct(
TaxationService $taxationService
)
{
$this->taxationService = $taxationService;
}
public function onTaxationFinish(TaxationFinishEvent $event) : void
{
$this->taxationService->onTaxationFinish($event->getTaxation());
}
}