| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | class EventRouteRule implements EventRouteRuleInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var EventConfigInterface event route condition |
||
| 15 | */ |
||
| 16 | protected EventConfigInterface $config; |
||
| 17 | /** |
||
| 18 | * @var callable event handler |
||
| 19 | */ |
||
| 20 | protected $handler; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * EventRouteRule constructor |
||
| 24 | * @param EventConfigInterface $config |
||
| 25 | * @param callable $handler |
||
| 26 | */ |
||
| 27 | 2 | public function __construct(EventConfigInterface $config, callable $handler) |
|
| 28 | { |
||
| 29 | 2 | $this->config = $config; |
|
| 30 | 2 | $this->handler = $handler; |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritDoc} |
||
| 35 | */ |
||
| 36 | 2 | public function getConfig(): EventConfigInterface |
|
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritDoc} |
||
| 43 | */ |
||
| 44 | 2 | public function getHandler(): callable |
|
| 49 |