Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
30 | 3 | public function __construct(BlockHeaderSerializer $header) |
|
31 | { |
||
32 | 3 | $this->headerSerializer = $header; |
|
33 | 3 | $this->vectorHeader = Types::vector(function (Parser $parser): BlockHeaderInterface { |
|
34 | 3 | $header = $this->headerSerializer->fromParser($parser); |
|
35 | 3 | $parser->readBytes(1); |
|
36 | 3 | return $header; |
|
37 | 3 | }); |
|
38 | 3 | } |
|
39 | |||
40 | /** |
||
72 |