Property | Type | Description | |
---|---|---|---|
$_compiledPattern | string | ||
$_httpMethod | string | ||
$_paths | array | ||
$_pattern | string |
Method | Description | |
---|---|---|
__construct ( string $pattern, string | array $paths = null, string $httpMethod = null ) | \ManaPHP\Mvc\Router\Route constructor | |
getPaths ( ) : array | Returns the paths | |
getRoutePaths ( string | array $paths = null ) : array | Returns routePaths | |
match ( string $uri ) : boolean | array |
Method | Description | |
---|---|---|
_compilePattern ( string $pattern ) : string | Replaces placeholders from pattern returning a valid PCRE regular expression | |
_extractNamedParams ( string $pattern ) : string | Extracts parameters from a string |
protected _compilePattern ( string $pattern ) : string | ||
$pattern | string | |
return | string |
protected _extractNamedParams ( string $pattern ) : string | ||
$pattern | string | |
return | string |