for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Thruster\Component\Stream;
use Thruster\Component\EventEmitter\EventEmitterTrait;
/**
* Class WritableStream
*
* @package Thruster\Component\Stream
* @author Aurimas Niekis <[email protected]>
*/
class WritableStream extends BaseStream implements WritableStreamInterface
{
public function __construct()
$this->closed = false;
}
* {@inheritDoc}
public function write($data)
public function end($data = null) : self
if (null !== $data) {
$this->write($data);
$this->close();
return $this;
public function isWritable() : bool
return !$this->closed;