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