class SimpleRouter implements Router

The bidirectional route for trivial routing via query parameters.

Traits

Strict class for better experience.

Methods

__construct(array $defaults = [])

No description

array|null
match(IRequest $httpRequest)

Maps HTTP request to an array.

string|null
constructUrl(array $params, UrlScript $refUrl)

Constructs absolute URL from array.

array
getDefaults()

Returns default values.

Details

at line 26
__construct(array $defaults = [])

Parameters

array $defaults

at line 35
array|null match(IRequest $httpRequest)

Maps HTTP request to an array.

Parameters

IRequest $httpRequest

Return Value

array|null

at line 46
string|null constructUrl(array $params, UrlScript $refUrl)

Constructs absolute URL from array.

Parameters

array $params
UrlScript $refUrl

Return Value

string|null

at line 68
array getDefaults()

Returns default values.

Return Value

array