| Total Complexity | 11 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class Controlador |
||
| 12 | { |
||
| 13 | private $_controlador; |
||
| 14 | |||
| 15 | public function __construct(Enlace $url) |
||
| 18 | } |
||
| 19 | |||
| 20 | public function controlador(): string |
||
| 23 | } |
||
| 24 | |||
| 25 | private function setControlador(array $url): string |
||
| 28 | } |
||
| 29 | |||
| 30 | //controlador esta declarado |
||
| 31 | private function controladorDeclarado(array $url) |
||
| 32 | { |
||
| 33 | if (!isset($url[0])) { |
||
| 34 | return CONTROLADOR_POR_DEFECTO; |
||
| 35 | } |
||
| 36 | |||
| 37 | return ucwords($url[0]); |
||
| 38 | } |
||
| 39 | |||
| 40 | //controlador existe |
||
| 41 | |||
| 42 | private function controladorExiste(string $controlador): string |
||
| 49 | } |
||
| 50 | |||
| 51 | private function controladorPorDefectoExiste(): string |
||
| 58 | } |
||
| 59 | } |
||
| 60 |