| 1 | <?php |
||
| 15 | class BufferedSink extends WritableStream implements PromisorInterface |
||
| 16 | { |
||
| 17 | use UtilsTrait; |
||
| 18 | |||
| 19 | private $buffer = ''; |
||
| 20 | private $deferred; |
||
| 21 | |||
| 22 | 11 | public function __construct() |
|
| 31 | |||
| 32 | 3 | public function handlePipeEvent($source) |
|
| 36 | |||
| 37 | 2 | public function handleErrorEvent($e) |
|
| 41 | |||
| 42 | 6 | public function write($data) |
|
| 46 | |||
| 47 | 7 | public function close() |
|
| 57 | |||
| 58 | 11 | public function promise() : PromiseInterface |
|
| 62 | |||
| 63 | 1 | public static function createPromise(ReadableStreamInterface $stream) : PromiseInterface |
|
| 71 | } |
||
| 72 |