Methods
-
Constructs a route (value object).
-
Tests whether this route matches the given string.
Methods Details
-
public function __construct(string $httpMethod, variable $handler, string $regex, array $variables)
Constructs a route (value object). -
public function matches(string $str)
Tests whether this route matches the given string.