Lines:
1 to 35 of 35
<?php namespace YoastSEO_Vendor\GuzzleHttp\Psr7; use YoastSEO_Vendor\Psr\Http\Message\StreamInterface; /** * Stream decorator trait * * @property StreamInterface stream */ trait StreamDecoratorTrait { /* function __construct() – */ /* function __get() – Magic method used to create a new stream if streams are not added in the constructor of a decorator (e.g., LazyOpenStream). */ /* function __toString() – Returns a string representation of the access token */ /* function getContents() – Returns the remaining contents in a string */ /* function __call() – Allow decorators to implement custom methods */ /* function close() – Closes the stream and any underlying resources. */ /* function getMetadata() – Get stream metadata as an associative array or retrieve a specific key. */ /* function detach() – Separates any underlying resources from the stream. */ /* function getSize() – Get the size of the stream if known. */ /* function eof() – Returns true if the stream is at the end of the stream. */ /* function tell() – Returns the current position of the file read/write pointer */ /* function isReadable() – Returns whether or not the stream is readable. */ /* function isWritable() – Returns whether or not the stream is writable. */ /* function isSeekable() – Returns whether or not the stream is seekable. */ /* function rewind() – Seek to the beginning of the stream. */ /* function seek() – Seek to a position in the stream. */ /* function read() – Read data from the stream. */ /* function write() – Write data to the stream. */ /* function createStream() – Implement in subclasses to dynamically create streams when requested. */ }