| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | trait CurrentTrait{ |
||
| 6 | use Helper; |
||
| 7 | |||
| 8 | public static function current(): array |
||
| 9 | { |
||
| 10 | self::getInstance()->hasCurrentRoute(); |
||
| 11 | return self::getInstance()->currentRoute; |
||
|
|
|||
| 12 | } |
||
| 13 | |||
| 14 | public static function currentName(): string |
||
| 15 | { |
||
| 16 | self::getInstance()->hasCurrentRoute(); |
||
| 17 | return self::getInstance()->currentRoute['name']; |
||
| 18 | } |
||
| 19 | |||
| 20 | public static function currentAction() |
||
| 24 | } |
||
| 25 | |||
| 26 | } |
||
| 27 |