\FastRouteRoute

Summary

Methods
Properties
Constants
__construct()
matches()
$httpMethod
$regex
$variables
$handler
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$httpMethod

$httpMethod : string

Type

string

$regex

$regex : string

Type

string

$variables

$variables : array

Type

array

$handler

$handler : mixed

Type

mixed

Methods

__construct()

__construct(string  $httpMethod, mixed  $handler, string  $regex, array  $variables) 

Constructs a route (value object).

Parameters

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

matches()

matches(string  $str) : boolean

Tests whether this route matches the given string.

Parameters

string $str

Returns

boolean