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