Aerys\FieldBody classFieldBody extendsAerys\Body

Summary

Properties

Methods

Properties

Methods

__construct —public function__construct(Amp\Promise$promise,Amp\Promise$metadata)
No documentation.
Type Parameter Description Default Value
Amp\Promise $promise No documentation. none
Amp\Promise $metadata No documentation. none
defined —public functiondefined():Amp\Promise
No documentation.
getMetadata —public functiongetMetadata():Amp\Promise
No documentation.
when —public functionwhen(callable$func,$data =null)
No documentation.
Type Parameter Description Default Value
callable $func No documentation. none
mixed $data No documentation. null
watch —public functionwatch(callable$func,$data =null)
No documentation.
Type Parameter Description Default Value
callable $func No documentation. none
mixed $data No documentation. null
valid —public functionvalid():Amp\Promise

Will more data arrive on the stream?

Stream consumers should await the result of the valid() promise before consuming stream output.

consume —public functionconsume():mixed

Consume buffered stream data