| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 76.92% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class DefaultController |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Templater |
||
| 13 | */ |
||
| 14 | private $templater; |
||
| 15 | |||
| 16 | 3 | public function __construct() |
|
| 17 | { |
||
| 18 | 3 | $this->templater = new Templater(); |
|
| 19 | 3 | } |
|
| 20 | |||
| 21 | 3 | public function notFoundAction() |
|
| 24 | } |
||
| 25 | |||
| 26 | 3 | public static function create() |
|
| 29 | } |
||
| 30 | |||
| 31 | public function render($template, array $params): ResponseInterface |
||
| 36 | } |
||
| 37 | |||
| 38 | 3 | public function returnResponse($body = '', $statusCode = 200): ResponseInterface |
|
| 48 |