| 1 | <?php |
||
| 11 | class ThroughStream extends CompositeStream |
||
| 12 | { |
||
| 13 | 11 | public function __construct() |
|
| 14 | { |
||
| 15 | 11 | $readable = new ReadableStream(); |
|
| 16 | 11 | $writable = new WritableStream(); |
|
| 17 | |||
| 18 | 11 | parent::__construct($readable, $writable); |
|
| 19 | 11 | } |
|
| 20 | |||
| 21 | 4 | public function filter($data) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritDoc} |
||
| 28 | */ |
||
| 29 | 3 | public function write($data) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritDoc} |
||
| 36 | */ |
||
| 37 | 2 | public function end($data = null) |
|
| 45 | } |
||
| 46 |