Aerys\ParsedBody class ParsedBody

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 function get(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 function getArray(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 function getMetadata(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 function getMetadataArray(string $name): array

Fetch an array of metadata

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

Returns the names of the passed fields

getAll — public function getAll(): array

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