/** * {@inheritdoc} */ protected function doDetach() { $stream = $this->stream->getStream(); $this->stream->detachStream(); return $stream; }