Method | Description | |
---|---|---|
__construct ( string $staticPrefix, string $regex, array $variables, array $extractedRegexes, string | boolean $defaultRoute ) | Base constructor. | |
getDefaultRoute ( ) : string | boolean | Returns the default route. | |
getExtractedRegexes ( ) : array | Returns a list of extracted regexes. | |
getRegex ( ) : string | Get the regular expression to match the url. | |
getStaticPrefix ( ) : string | Get the static prefix. | |
getVariables ( ) : array | Get the extracted variables from the path. |
public __construct ( string $staticPrefix, string $regex, array $variables, array $extractedRegexes, string | boolean $defaultRoute ) | ||
$staticPrefix | string | Pattern prefix that doesn't contain regular expression. |
$regex | string | Regular expression that will be matched against the given url. |
$variables | array | List of available variables extracted from the route path. |
$extractedRegexes | array | List of extracted regexes from the route. |
$defaultRoute | string | boolean | A route that contains default values or false. |
public getDefaultRoute ( ) : string | boolean | ||
return | string | boolean |
public getExtractedRegexes ( ) : array | ||
return | array |
public getStaticPrefix ( ) : string | ||
return | string |
public getVariables ( ) : array | ||
return | array |