for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Http\Message\Decorator;
use Psr\Http\Message\StreamInterface;
/**
* Decorates a stream.
*
* @author Márk Sági-Kazár <[email protected]>
*/
trait StreamDecorator
{
* @var StreamInterface
protected $stream;
* {@inheritdoc}
public function __toString()
return $this->stream->__toString();
}
public function close()
$this->stream->close();
public function detach()
return $this->stream->detach();
public function getSize()
return $this->stream->getSize();
public function tell()
return $this->stream->tell();
public function eof()
return $this->stream->eof();
public function isSeekable()
return $this->stream->isSeekable();
public function seek($offset, $whence = SEEK_SET)
$this->stream->seek($offset, $whence);
public function rewind()
$this->stream->rewind();
public function isWritable()
return $this->stream->isWritable();
public function write($string)
return $this->stream->write($string);
public function isReadable()
return $this->stream->isReadable();
public function read($length)
return $this->stream->read($length);
public function getContents()
return $this->stream->getContents();
public function getMetadata($key = null)
return $this->stream->getMetadata($key);