RouteInterface
interface RouteInterface implements HasAttributesInterface (View source)
Interface that routes must implement
Methods
mixed
getAttribute(string $attribute, mixed $default = '')
Get attribute.
attribute(string $attribute, mixed $value)
Fluent alias for setAttribute().
attributes(array $attributes)
Fluent alias for setAttributes().
boolean
array
Details
mixed
getAttribute(string $attribute, mixed $default = '')
Get attribute.
array
getAttributes()
Get all attributes.
void
setAttribute(string $attribute, mixed $value)
Set attribute.
HasAttributesInterface
attribute(string $attribute, mixed $value)
Fluent alias for setAttribute().
void
setAttributes(array $attributes)
Set attributes.
No attempt to merge attributes is done - this is a direct overwrite operation.
HasAttributesInterface
attributes(array $attributes)
Fluent alias for setAttributes().
at line 25
boolean
isSatisfied(RequestInterface $request)
Get whether the route is satisfied.
at line 33
array
getArguments(RequestInterface $request)
Get arguments.