| 1 | <?php |
||
| 8 | class WriterStream implements WritableStream |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Pipe $writer |
||
| 12 | */ |
||
| 13 | private $writer; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param Pipe $writer The pipe which data is sent |
||
| 17 | * |
||
| 18 | * @return void |
||
|
|
|||
| 19 | */ |
||
| 20 | public function __construct(Pipe $writer) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritDoc} |
||
| 27 | */ |
||
| 28 | public function write($content) |
||
| 34 | } |
||
| 35 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.