public function __construct(StreamInterface $stream) { // Trick to get underlying stream $socket = $stream->detach(); $this->socket = $socket; $this->stream = new Stream($socket); }
public function detach() { $this->stream->detach(); $this->size = 0; }
/** * {@inheritdoc} */ protected function doDetach() { return $this->stream->detach(); }