PayloadStreamInterface
Interface
Interface PayloadStreamInterface.
Description
Extends the PSR-7 StreamInterface to provide additional functionality for payload handling. Implementations of this interface MUST support both standard stream operations and structured payload manipulation.
Methods
getPayload()
: mixed
Retrieves the payload contained within the object.
Methods
Retrieves the payload contained within the object.
public
getPayload() : mixed
Description
This method MUST return the payload as originally provided or modified. The returned type MAY vary depending on the structure of the payload (e.g., array, object, scalar, or null).
Return values
Description
the payload, which MAY be of any type including array, object, scalar, or null