1 | <?php declare(strict_types=1); |
||
8 | final class WritableStreamHash extends EventEmitter implements WritableStreamInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var WritableStreamInterface |
||
12 | */ |
||
13 | private $stream; |
||
14 | |||
15 | /** |
||
16 | * @var resource |
||
17 | */ |
||
18 | private $context; |
||
19 | |||
20 | /** |
||
21 | * WritableStreamHash constructor. |
||
22 | * @param WritableStreamInterface $stream |
||
23 | */ |
||
24 | 184 | public function __construct(WritableStreamInterface $stream, string $algo, int $options = 0, string $key = '') |
|
35 | |||
36 | public function isWritable() |
||
40 | |||
41 | 184 | public function write($data) |
|
47 | |||
48 | 184 | public function end($data = null) |
|
55 | |||
56 | public function close() |
||
60 | } |
||
61 |