Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 81.82% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | final class DocumentBlockParser extends AbstractBlockContinueParser |
||
25 | { |
||
26 | /** |
||
27 | * @var Document |
||
28 | * |
||
29 | * @psalm-readonly |
||
30 | */ |
||
31 | private $document; |
||
32 | |||
33 | 2994 | public function __construct(ReferenceMapInterface $referenceMap) |
|
34 | { |
||
35 | 2994 | $this->document = new Document($referenceMap); |
|
36 | 2994 | } |
|
37 | |||
38 | /** |
||
39 | * @return Document |
||
40 | */ |
||
41 | 2994 | public function getBlock(): AbstractBlock |
|
42 | { |
||
43 | 2994 | return $this->document; |
|
44 | } |
||
45 | |||
46 | 2982 | public function isContainer(): bool |
|
47 | { |
||
48 | 2982 | return true; |
|
49 | } |
||
50 | |||
51 | 2982 | public function canContain(AbstractBlock $childBlock): bool |
|
54 | } |
||
55 | |||
56 | public function tryContinue(Cursor $cursor, BlockContinueParserInterface $activeBlockParser): ?BlockContinue |
||
59 | } |
||
60 | } |
||
61 |