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