Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | trait CurrentTrait |
||
8 | { |
||
9 | use Helper; |
||
10 | |||
11 | protected array $currentRoute = []; |
||
12 | |||
13 | public static function current(): array |
||
14 | { |
||
15 | self::getInstance()->hasCurrentRoute(); |
||
16 | return self::getInstance()->getCurrent(); |
||
17 | } |
||
18 | |||
19 | public static function currentName(): string |
||
20 | { |
||
21 | self::getInstance()->hasCurrentRoute(); |
||
22 | return self::getInstance()->getCurrent()['name']; |
||
23 | } |
||
24 | |||
25 | public static function currentAction() |
||
29 | } |
||
30 | |||
31 | protected function getCurrent(): array |
||
34 | } |
||
35 | |||
37 |