Total Complexity | 6 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | final class DescriptionListContinueParser extends AbstractBlockContinueParser |
||
26 | { |
||
27 | /** @var DescriptionList */ |
||
28 | private $block; |
||
29 | |||
30 | 30 | public function __construct() |
|
31 | { |
||
32 | 30 | $this->block = new DescriptionList(); |
|
33 | 30 | } |
|
34 | |||
35 | /** |
||
36 | * @return DescriptionList |
||
37 | */ |
||
38 | 30 | public function getBlock(): AbstractBlock |
|
39 | { |
||
40 | 30 | return $this->block; |
|
41 | } |
||
42 | |||
43 | 27 | public function tryContinue(Cursor $cursor, BlockContinueParserInterface $activeBlockParser): ?BlockContinue |
|
44 | { |
||
45 | 27 | return BlockContinue::at($cursor); |
|
46 | } |
||
47 | |||
48 | 30 | public function isContainer(): bool |
|
49 | { |
||
50 | 30 | return true; |
|
51 | } |
||
52 | |||
53 | 30 | public function canContain(AbstractBlock $childBlock): bool |
|
56 | } |
||
57 | } |
||
58 |