class RouteParameterReference implements ExternalReference

Methods

__construct(string $routeParameter, string|null $property = null, bool $nullable = false)

Create a route parameter reference.

mixed
getValue()

Resolve the route parameter, or the given property of it, from the current request.

Details

at line 14
__construct(string $routeParameter, string|null $property = null, bool $nullable = false)

Create a route parameter reference.

Parameters

string $routeParameter
string|null $property
bool $nullable

at line 26
mixed getValue()

Resolve the route parameter, or the given property of it, from the current request.

Return Value

mixed

Exceptions

CannotResolveRouteParameterReference