Class Route
A route.
- ICanBoogie\Routing\Route uses ICanBoogie\Accessor\AccessorTrait (not available)
Methods summary
public static
|
#
from( array $definition )
Creates a new |
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
mixed
|
|
protected
boolean
|
|
protected
string
|
|
protected
string
|
|
public
|
#
__construct( string $pattern, array $properties )
Initializes the $pattern property and the properties provided. |
public
|
|
public
string
|
|
protected
|
#
assert_properties_are_valid( array $properties, array $invalid )
Asserts that properties are valid. |
public
|
|
public
|
Properties summary
protected static
array
|
$invalid_construct_properties
|
#
[ 'formatting_value', 'url', 'absolute_url' ]
|
Magic properties
public read-only
|
$pattern
The pattern of the route. |
public read-only
string
|
$controller
The class name of the controller. |
public read-only
string|null
|
$action
Controller action. |
public read-only
string
|
$id
Route identifier. |
public read-only
string|null
|
$location
Redirection destination. |
public read-only
string|array|null
|
$via
The supported HTTP methods. |
public read-only
string
|
$url
The contextualized URL of the route. |
public read-only
string
|
$absolute_url
The contextualized absolute URL of the route. |
public read-only
mixed
|
$formatting_value
The value used to format the route. |
public read-only
boolean
|
$has_formatting_value
|