Constructor.
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|null $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):
public function __construct($staticPrefix, $regex, array $tokens, array $pathVariables, $hostRegex = null, array $hostTokens = array(), array $hostVariables = array(), array $variables = array()) {
$this->staticPrefix = (string) $staticPrefix;
$this->regex = $regex;
$this->tokens = $tokens;
$this->pathVariables = $pathVariables;
$this->hostRegex = $hostRegex;
$this->hostTokens = $hostTokens;
$this->hostVariables = $hostVariables;
$this->variables = $variables;
}