File: //proc/self/cwd/nueva/modules/pmproductvideoreviews/vendor/psr/http-message/src/StreamInterface.php
<?php
declare(strict_types=1);
namespace Psr\Http\Message;
/**
* Describes a data stream.
*
* Typically, an instance will wrap a PHP stream; this interface provides
* a wrapper around the most common operations, including serialization of
* the entire stream to a string.
*/
interface StreamInterface
{
/**
* Reads all data from the stream into a string, from the beginning to end.
*
* This method MUST attempt to seek to the beginning of the stream before
* reading data and read the stream until the end is reached.
*
* Warning: This could attempt to load a large amount of data into memory.
*
* This method MUST NOT raise an exception in order to conform with PHP's
* string casting operations.
*
* @see http://php.net/manual/en/language.oop5.magic.php#object.tostring
* @return string
*/
public function __toString();
public function close();
public function detach();
public function getSize();
public function tell();
public function eof();
public function isSeekable();
public function seek(int $offset, int $whence = SEEK_SET);
public function rewind();
public function isWritable();
public function write(string $string);
public function isReadable();
public function read(int $length);
public function getContents();
public function getMetadata(?string $key = null);
}