| Total Complexity | 6 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait ControllerTrait{ |
||
| 8 | |||
| 9 | protected function checkControllSettable(string $controll) |
||
| 10 | { |
||
| 11 | if(count(explode(':',$controll)) != 2){ |
||
| 12 | throw new Exception("Controller {$controll} badly set."); |
||
| 13 | } |
||
| 14 | return $this; |
||
| 15 | } |
||
| 16 | |||
| 17 | protected function checkControllExist(string $controll) |
||
| 24 | } |
||
| 25 | |||
| 26 | protected function checkControllMethod(string $controll) |
||
| 34 | } |
||
| 35 | |||
| 36 | } |