Total Complexity | 5 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | final class RouteSituations extends BaseSituation |
||
8 | { |
||
9 | public function hasMethod($method) |
||
19 | ]); |
||
20 | } |
||
21 | |||
22 | public function __call($method, $args) |
||
23 | { |
||
24 | $args = $this->getNormalizedArgs($method, $args); |
||
25 | $this->setManager(RouterEventManager::class, $args); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @param $method |
||
30 | * @param $args |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | private function getNormalizedArgs($method, $args): array |
||
49 | } |
||
50 | } |
||
51 |