Documentation

RouteParamMap
in package

Contains route parameters

Table of Contents

__construct()  : mixed
toArray()  : array<string, string>
Retrieve the entire contents of the route parameter map as an associative array.

Methods

__construct()

public __construct(string $unresolvedRoute, string $requestPath) : mixed
Parameters
$unresolvedRoute : string

Should represent the parameterized route, i.e. /some/path/{id}

$requestPath : string

The actual path from the request, i.e. /some/path/123

Return values
mixed

toArray()

Retrieve the entire contents of the route parameter map as an associative array.

public toArray() : array<string, string>
Return values
array<string, string>

Search results