_stream; $this->_stream = $stream; return $old; } /** * Get current stream. * * @return object */ public function getStream() { return $this->_stream; } /** * Set inner stream. * * @param \Hoa\Stream $innerStream Inner stream. * @return \Hoa\Stream */ protected function setInnerStream(Stream $innerStream) { $old = $this->_innerStream; $this->_innerStream = $innerStream; return $old; } /** * Get inner stream. * * @return \Hoa\Stream */ public function getInnerStream() { return $this->_innerStream; } }