class CompiledRoute implements Serializable
CompiledRoutes are returned by the RouteCompiler class.
__construct(string $staticPrefix, string $regex, array $tokens, array $pathVariables, string $hostRegex = null, array $hostTokens = array(), array $hostVariables = array(), array $variables = array()) | ||
serialize() {@inheritdoc} | ||
unserialize($serialized) {@inheritdoc} | ||
string | getStaticPrefix() Returns the static prefix. | |
string | getRegex() Returns the regex. | |
string|null | getHostRegex() Returns the host regex. | |
array | getTokens() Returns the tokens. | |
array | getHostTokens() Returns the host tokens. | |
array | getVariables() Returns the variables. | |
array | getPathVariables() Returns the path variables. | |
array | getHostVariables() Returns the host variables. |
string | $staticPrefix | The static prefix of the compiled route |
string | $regex | The regular expression to use to match this route |
array | $tokens | An array of tokens to use to generate URL for this route |
array | $pathVariables | An array of path variables |
string | $hostRegex | Host regex |
array | $hostTokens | Host tokens |
array | $hostVariables | An array of host variables |
array | $variables | An array of variables (variables defined in the path and in the host patterns) |
{@inheritdoc}
{@inheritdoc}
$serialized |
Returns the static prefix.
string | The static prefix |
Returns the regex.
string | The regex |
Returns the host regex.
string|null | The host regex or null |
Returns the tokens.
array | The tokens |
Returns the host tokens.
array | The tokens |
Returns the variables.
array | The variables |
Returns the path variables.
array | The variables |
Returns the host variables.
array | The variables |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Routing/CompiledRoute.html