1 | <?php |
||
11 | class BlockHeaderFactory |
||
12 | { |
||
13 | /** |
||
14 | * @param string $string |
||
15 | * @return BlockHeaderInterface |
||
16 | * @throws \BitWasp\Buffertools\Exceptions\ParserOutOfRange |
||
17 | * @throws \Exception |
||
18 | */ |
||
19 | 4 | public static function fromHex(string $string): BlockHeaderInterface |
|
23 | |||
24 | /** |
||
25 | * @param BufferInterface $buffer |
||
26 | * @return BlockHeaderInterface |
||
27 | * @throws \BitWasp\Buffertools\Exceptions\ParserOutOfRange |
||
28 | */ |
||
29 | 4 | public static function fromBuffer(BufferInterface $buffer): BlockHeaderInterface |
|
33 | } |
||
34 |