| Total Complexity | 5 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class View extends Template implements Response |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Cria uma View com base no arquivo escolhido |
||
| 19 | * @param string $file arquivo da View |
||
| 20 | */ |
||
| 21 | public function __construct($file) |
||
| 28 | } |
||
| 29 | |||
| 30 | private function validateFile() |
||
| 31 | { |
||
| 32 | if (!$this->exists()) { |
||
| 33 | throw new HttpException("View '{$this->file}' not found", 404); |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | /** @return string */ |
||
| 38 | public function getTitle() |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Envia a resposta Html |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function respond() |
||
| 50 | } |
||
| 51 | } |
||
| 52 |