|
| __construct ($httpMethod, $handler, $regex, $variables) |
| Constructs a route (value object). More...
|
|
| matches ($str) |
| Tests whether this route matches the given string. More...
|
|
Definition at line 5 of file Route.php.
◆ __construct()
FastRoute\Route::__construct |
( |
|
$httpMethod, |
|
|
|
$handler, |
|
|
|
$regex, |
|
|
|
$variables |
|
) |
| |
Constructs a route (value object).
- Parameters
-
string | $httpMethod | |
mixed | $handler | |
string | $regex | |
array | $variables | |
Definition at line 27 of file Route.php.
References $handler.
◆ matches()
FastRoute\Route::matches |
( |
|
$str | ) |
|
Tests whether this route matches the given string.
- Parameters
-
- Returns
- bool
Definition at line 42 of file Route.php.
44 $regex =
'~^' . $this->regex .
'$~';
45 return (
bool) preg_match(
$regex, $str);
◆ $handler
FastRoute\Route::$handler |
◆ $httpMethod
FastRoute\Route::$httpMethod |
◆ $regex
◆ $variables
FastRoute\Route::$variables |
The documentation for this class was generated from the following file:
- libs/composer/vendor/nikic/fast-route/src/Route.php