1 | <?php |
||
13 | class BlockSerializer implements BlockSerializerInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var Math |
||
17 | */ |
||
18 | private $math; |
||
19 | |||
20 | /** |
||
21 | * @var BlockHeaderSerializer |
||
22 | */ |
||
23 | private $headerSerializer; |
||
24 | |||
25 | /** |
||
26 | * @var \BitWasp\Buffertools\Types\VarInt |
||
27 | */ |
||
28 | private $varint; |
||
29 | |||
30 | /** |
||
31 | * @var TransactionSerializerInterface |
||
32 | */ |
||
33 | private $txSerializer; |
||
34 | |||
35 | /** |
||
36 | * @param Math $math |
||
37 | * @param BlockHeaderSerializer $headerSerializer |
||
38 | * @param TransactionSerializerInterface $txSerializer |
||
39 | */ |
||
40 | 28 | public function __construct(Math $math, BlockHeaderSerializer $headerSerializer, TransactionSerializerInterface $txSerializer) |
|
47 | |||
48 | /** |
||
49 | * @param Parser $parser |
||
50 | * @return BlockInterface |
||
51 | * @throws ParserOutOfRange |
||
52 | */ |
||
53 | 26 | public function fromParser(Parser $parser) |
|
67 | |||
68 | /** |
||
69 | * @param \BitWasp\Buffertools\BufferInterface|string $string |
||
70 | * @return BlockInterface |
||
71 | * @throws ParserOutOfRange |
||
72 | */ |
||
73 | 22 | public function parse($string) |
|
77 | |||
78 | /** |
||
79 | * @param BlockInterface $block |
||
80 | * @return \BitWasp\Buffertools\BufferInterface |
||
81 | */ |
||
82 | 6 | public function serialize(BlockInterface $block) |
|
92 | } |
||
93 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.