Aerys\ParsedBody classParsedBody

Summary

Properties

Methods

Properties

Methods

__construct —public function__construct(array$fields,array$metadata =[])
No documentation.
Type Parameter Description Default Value
array $fields No documentation. none
array $metadata No documentation. []
get —public functionget(string$name):string|null

Fetch a string parameter (or null if it doesn't exist)

Type Parameter Description Default Value
string $name No documentation. none
getArray —public functiongetArray(string$name):array

Fetch an array parameter (or empty array if it doesn't exist)

Type Parameter Description Default Value
string $name No documentation. none
getMetadata —public functiongetMetadata(string$name):array|null

Contains an array("filename" => $name, "mime" => $mimetype) Elements may be missing, but in case a filename is provided, mime is always set

Type Parameter Description Default Value
string $name No documentation. none
getMetadataArray —public functiongetMetadataArray(string$name):array

Fetch an array of metadata

Type Parameter Description Default Value
string $name No documentation. none
getNames —public functiongetNames():array

Returns the names of the passed fields

getAll —public functiongetAll():array

returns two associative fields and metadata arrays (like for extended abstractions or debug)