Class Route
A route.
- ICanBoogie\Routing\Route uses ICanBoogie\Accessor\AccessorTrait (not available)
Methods summary
public static
from( array $definition
)
: ICanBoogie\Routing\Route
Creates a new ICanBoogie\Routing\Route
instance from a route definition.
public
__construct( string $pattern
, array $properties
)
Initializes the $pattern property and the properties provided.
protected
assert_properties_are_valid( array $properties
, array $invalid
)
Asserts that properties are valid.
public
format( object|array|null $values
= null )
: ICanBoogie\Routing\FormattedRoute
Formats the route with the specified values.
public
assign( mixed $formatting_value
)
: ICanBoogie\Routing\Route
Assigns a formatting value to a route.