20 lines
345 B
PHP
20 lines
345 B
PHP
|
<?php
|
||
|
|
||
|
namespace React\Stream;
|
||
|
|
||
|
use Evenement\EventEmitterInterface;
|
||
|
|
||
|
/**
|
||
|
* @event drain
|
||
|
* @event error
|
||
|
* @event close
|
||
|
* @event pipe
|
||
|
*/
|
||
|
interface WritableStreamInterface extends EventEmitterInterface
|
||
|
{
|
||
|
public function isWritable();
|
||
|
public function write($data);
|
||
|
public function end($data = null);
|
||
|
public function close();
|
||
|
}
|