CompiledRoute
    
            
            in package
            
        
    
            
            implements
                            Serializable                    
    
    
        
            CompiledRoutes are returned by the RouteCompiler class.
Tags
Interfaces, Classes, Traits and Enums
- Serializable
 
Table of Contents
- $hostRegex : mixed
 - $hostTokens : mixed
 - $hostVariables : mixed
 - $pathVariables : mixed
 - $regex : mixed
 - $staticPrefix : mixed
 - $tokens : mixed
 - $variables : mixed
 - __construct() : mixed
 - __serialize() : array<string|int, mixed>
 - __unserialize() : void
 - getHostRegex() : string|null
 - Returns the host regex.
 - getHostTokens() : array<string|int, mixed>
 - Returns the host tokens.
 - getHostVariables() : array<string|int, mixed>
 - Returns the host variables.
 - getPathVariables() : array<string|int, mixed>
 - Returns the path variables.
 - getRegex() : string
 - Returns the regex.
 - getStaticPrefix() : string
 - Returns the static prefix.
 - getTokens() : array<string|int, mixed>
 - Returns the tokens.
 - getVariables() : array<string|int, mixed>
 - Returns the variables.
 
Properties
$hostRegex
    private
        mixed
    $hostRegex
    
        
        
    
$hostTokens
    private
        mixed
    $hostTokens
    
        
        
    
$hostVariables
    private
        mixed
    $hostVariables
    
        
        
    
$pathVariables
    private
        mixed
    $pathVariables
    
        
        
    
$regex
    private
        mixed
    $regex
    
        
        
    
$staticPrefix
    private
        mixed
    $staticPrefix
    
        
        
    
$tokens
    private
        mixed
    $tokens
    
        
        
    
$variables
    private
        mixed
    $variables
    
        
        
    
Methods
__construct()
    public
                    __construct(string $staticPrefix, string $regex, array<string|int, mixed> $tokens, array<string|int, mixed> $pathVariables[, string|null $hostRegex = null ][, array<string|int, mixed> $hostTokens = [] ][, array<string|int, mixed> $hostVariables = [] ][, array<string|int, mixed> $variables = [] ]) : mixed
    
        Parameters
- $staticPrefix : string
 - 
                    
The static prefix of the compiled route
 - $regex : string
 - 
                    
The regular expression to use to match this route
 - $tokens : array<string|int, mixed>
 - 
                    
An array of tokens to use to generate URL for this route
 - $pathVariables : array<string|int, mixed>
 - 
                    
An array of path variables
 - $hostRegex : string|null = null
 - 
                    
Host regex
 - $hostTokens : array<string|int, mixed> = []
 - 
                    
Host tokens
 - $hostVariables : array<string|int, mixed> = []
 - 
                    
An array of host variables
 - $variables : array<string|int, mixed> = []
 - 
                    
An array of variables (variables defined in the path and in the host patterns)
 
Return values
mixed —__serialize()
    public
                    __serialize() : array<string|int, mixed>
        
    
    
        Return values
array<string|int, mixed> —__unserialize()
    public
                    __unserialize(array<string|int, mixed> $data) : void
        
        Parameters
- $data : array<string|int, mixed>
 
Return values
void —getHostRegex()
Returns the host regex.
    public
                    getHostRegex() : string|null
    
    
    
        Return values
string|null —The host regex or null
getHostTokens()
Returns the host tokens.
    public
                    getHostTokens() : array<string|int, mixed>
    
    
    
        Return values
array<string|int, mixed> —The tokens
getHostVariables()
Returns the host variables.
    public
                    getHostVariables() : array<string|int, mixed>
    
    
    
        Return values
array<string|int, mixed> —The variables
getPathVariables()
Returns the path variables.
    public
                    getPathVariables() : array<string|int, mixed>
    
    
    
        Return values
array<string|int, mixed> —The variables
getRegex()
Returns the regex.
    public
                    getRegex() : string
    
    
    
        Return values
string —The regex
getStaticPrefix()
Returns the static prefix.
    public
                    getStaticPrefix() : string
    
    
    
        Return values
string —The static prefix
getTokens()
Returns the tokens.
    public
                    getTokens() : array<string|int, mixed>
    
    
    
        Return values
array<string|int, mixed> —The tokens
getVariables()
Returns the variables.
    public
                    getVariables() : array<string|int, mixed>
    
    
    
        Return values
array<string|int, mixed> —The variables