1 | <?php |
||
15 | class BlockFactory |
||
16 | { |
||
17 | /** |
||
18 | * @param string $string |
||
19 | * @param Math|null $math |
||
20 | * @return BlockInterface |
||
21 | * @throws \BitWasp\Buffertools\Exceptions\ParserOutOfRange |
||
22 | * @throws \Exception |
||
23 | */ |
||
24 | 10 | public static function fromHex(string $string, Math $math = null): BlockInterface |
|
28 | |||
29 | /** |
||
30 | * @param BufferInterface $buffer |
||
31 | * @param Math|null $math |
||
32 | * @return BlockInterface |
||
33 | * @throws \BitWasp\Buffertools\Exceptions\ParserOutOfRange |
||
34 | */ |
||
35 | 10 | public static function fromBuffer(BufferInterface $buffer, Math $math = null): BlockInterface |
|
45 | } |
||
46 |