Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
FastRoute\Route Class Reference

Public Member Functions

 __construct ($httpMethod, $handler, $regex, $variables)
 Constructs a route (value object).
 
 matches ($str)
 Tests whether this route matches the given string.
 

Public Attributes

mixed $handler
 
string file home runner work phpdoc phpdoc moodle lib nikic fast route src Route php $httpMethod
 
string $regex
 
array $variables
 

Constructor & Destructor Documentation

◆ __construct()

FastRoute\Route::__construct ( $httpMethod,
$handler,
$regex,
$variables )

Constructs a route (value object).

Parameters
string$httpMethod
mixed$handler
string$regex
array$variables

Member Function Documentation

◆ matches()

FastRoute\Route::matches ( $str)

Tests whether this route matches the given string.

Parameters
string$str
Return values
bool

The documentation for this class was generated from the following file: