web-base/Core/Objects/Router/EmptyRoute.class.php

16 lines
323 B
PHP
Raw Normal View History

2022-06-01 09:47:31 +02:00
<?php
2022-11-18 18:06:46 +01:00
namespace Core\Objects\Router;
2022-06-01 09:47:31 +02:00
2022-11-27 12:33:27 +01:00
use Core\Objects\DatabaseEntity\Route;
class EmptyRoute extends Route {
2022-06-01 09:47:31 +02:00
public function __construct(string $pattern, bool $exact = true) {
2022-11-27 12:33:27 +01:00
parent::__construct("empty", $pattern, $exact);
2022-06-01 09:47:31 +02:00
}
public function call(Router $router, array $params): string {
return "";
}
}