Documentation

HeaderVisitor extends AbstractRequestVisitor
in package

Visitor used to apply a parameter to a header value

Table of Contents

Methods

after()  : mixed
Called after visiting all parameters
visit()  : mixed
Called once for each parameter being visited that matches the location type
addPrefixedHeaders()  : mixed
Add a prefixed array of headers to the request
prepareValue()  : array<string|int, mixed>|mixed
Prepare (filter and set desired name for request item) the value for request.
resolveRecursively()  : array<string|int, mixed>
Map nested parameters into the location_key based parameters

Methods

prepareValue()

Prepare (filter and set desired name for request item) the value for request.

protected prepareValue(mixed $value, Parameter $param) : array<string|int, mixed>|mixed
Parameters
$value : mixed
$param : Parameter
Return values
array<string|int, mixed>|mixed

resolveRecursively()

Map nested parameters into the location_key based parameters

protected resolveRecursively(array<string|int, mixed> $value, Parameter $param) : array<string|int, mixed>
Parameters
$value : array<string|int, mixed>

Value to map

$param : Parameter

Parameter that holds information about the current key

Return values
array<string|int, mixed>

Returns the mapped array


        
On this page

Search results