| 1 | <?php declare(strict_types=1); |
||
| 8 | final class WritableStreamHash implements WritableStreamInterface |
||
| 9 | { |
||
| 10 | use EventEmitterTrait; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var WritableStreamInterface |
||
| 14 | */ |
||
| 15 | private $stream; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var resource |
||
| 19 | */ |
||
| 20 | private $context; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * WritableStreamHash constructor. |
||
| 24 | * @param WritableStreamInterface $stream |
||
| 25 | */ |
||
| 26 | 184 | public function __construct(WritableStreamInterface $stream, string $hash, int $options = 0, string $key = '') |
|
| 36 | |||
| 37 | public function isWritable() |
||
| 41 | |||
| 42 | 184 | public function write($data) |
|
| 48 | |||
| 49 | 184 | public function end($data = null) |
|
| 56 | |||
| 57 | public function close() |
||
| 61 | } |
||
| 62 |