class MirroredParameter

Methods

__construct(SchemaPath $path, string $name, MirroredParameterType $type)

Create a parameter's header mapping.

string
header()

Get the HTTP header name.

mixed
raw(array $arguments)

Get the unencoded argument value.

string|null
stringify(mixed $value)

Convert the value according to its declared type.

value(array $arguments)

Get the validated header value for the supplied arguments.

Details

at line 15
__construct(SchemaPath $path, string $name, MirroredParameterType $type)

Create a parameter's header mapping.

Parameters

SchemaPath $path
string $name
MirroredParameterType $type

at line 25
string header()

Get the HTTP header name.

Return Value

string

at line 35
mixed raw(array $arguments)

Get the unencoded argument value.

Parameters

array $arguments

Return Value

mixed

at line 43
string|null stringify(mixed $value)

Convert the value according to its declared type.

Parameters

mixed $value

Return Value

string|null

at line 55
HeaderValue|null value(array $arguments)

Get the validated header value for the supplied arguments.

Parameters

array $arguments

Return Value

HeaderValue|null

Exceptions

MirroredParameterException