| 1 | <?php |
||
| 18 | final class MvcEventError |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var LoggerInterface |
||
| 22 | */ |
||
| 23 | protected $logger; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param LoggerInterface $logger |
||
| 27 | */ |
||
| 28 | 24 | public function __construct(LoggerInterface $logger) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Gets the logger that is used. |
||
| 35 | * |
||
| 36 | * @return LoggerInterface |
||
| 37 | */ |
||
| 38 | 3 | public function getLogger(): LoggerInterface |
|
| 42 | |||
| 43 | /** |
||
| 44 | * Should be called when an MvcEvent is fired. |
||
| 45 | * |
||
| 46 | * @param MvcEvent $event The event that is fired. |
||
| 47 | * @return void |
||
| 48 | */ |
||
| 49 | 6 | public function __invoke(MvcEvent $event) |
|
| 59 | } |
||
| 60 |