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