| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| 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 | }); |
|
| 72 |