| 1 | <?php  | 
            ||
| 8 | class ReaderStream implements ReadableStream  | 
            ||
| 9 | { | 
            ||
| 10 | /**  | 
            ||
| 11 | * @var Pipe $reader  | 
            ||
| 12 | */  | 
            ||
| 13 | private $reader;  | 
            ||
| 14 | |||
| 15 | /**  | 
            ||
| 16 | * @param Pipe $reader The pipe which data is received  | 
            ||
| 17 | *  | 
            ||
| 18 | * @return void  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 19 | */  | 
            ||
| 20 | public function __construct(Pipe $reader)  | 
            ||
| 24 | |||
| 25 | /**  | 
            ||
| 26 |      * {@inheritDoc} | 
            ||
| 27 | */  | 
            ||
| 28 | public function read()  | 
            ||
| 32 | }  | 
            ||
| 33 | 
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.