| Total Complexity | 4 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class NotFoundTemplateHandler implements RequestHandlerInterface |
||
| 19 | { |
||
| 20 | private const TEMPLATES_BASE_DIR = __DIR__ . '/../../templates'; |
||
| 21 | public const NOT_FOUND_TEMPLATE = '404.html'; |
||
| 22 | public const INVALID_SHORT_CODE_TEMPLATE = 'invalid-short-code.html'; |
||
| 23 | 3 | private Closure $readFile; |
|
| 24 | |||
| 25 | 3 | public function __construct(?callable $readFile = null) |
|
| 28 | } |
||
| 29 | |||
| 30 | public function handle(ServerRequestInterface $request): ResponseInterface |
||
| 41 |