Hoa central
Composite.php
Go to the documentation of this file.
1 <?php
2 
37 namespace Hoa\Stream;
38 
47 abstract class Composite
48 {
54  protected $_stream = null;
55 
61  protected $_innerStream = null;
62 
63 
64 
71  protected function setStream($stream)
72  {
73  $old = $this->_stream;
74  $this->_stream = $stream;
75 
76  return $old;
77  }
78 
84  protected function getStream()
85  {
86  return $this->_stream;
87  }
88 
95  protected function setInnerStream(Stream $innerStream)
96  {
97  $old = $this->_innerStream;
98  $this->_innerStream = $innerStream;
99 
100  return $old;
101  }
102 
108  public function getInnerStream()
109  {
110  return $this->_innerStream;
111  }
112 }
setInnerStream(Stream $innerStream)
Definition: Composite.php:95