for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPetroleum\Stream;
use PHPetroleum\Pipe;
use PHPetroleum\Stream\ReadableStream;
class ReaderStream implements ReadableStream
{
/**
* @var Pipe $reader
*/
private $reader;
* @param Pipe $reader The pipe which data is received
*
* @return void
@return
Adding a @return annotation 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.
public function __construct(Pipe $reader)
$this->reader = $reader;
}
* {@inheritDoc}
public function read()
return $this->reader->read();
Adding a
@return
annotation 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.