Total Complexity | 6 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
22 | final class MarkdownParserState implements MarkdownParserStateInterface |
||
23 | { |
||
24 | /** @psalm-readonly */ |
||
25 | private BlockContinueParserInterface $activeBlockParser; |
||
26 | |||
27 | /** @psalm-readonly */ |
||
28 | private BlockContinueParserInterface $lastMatchedBlockParser; |
||
29 | |||
30 | 2304 | public function __construct(BlockContinueParserInterface $activeBlockParser, BlockContinueParserInterface $lastMatchedBlockParser) |
|
31 | { |
||
32 | 2304 | $this->activeBlockParser = $activeBlockParser; |
|
33 | 2304 | $this->lastMatchedBlockParser = $lastMatchedBlockParser; |
|
34 | } |
||
35 | |||
36 | 208 | public function getActiveBlockParser(): BlockContinueParserInterface |
|
37 | { |
||
38 | 208 | return $this->activeBlockParser; |
|
39 | } |
||
40 | |||
41 | 302 | public function getLastMatchedBlockParser(): BlockContinueParserInterface |
|
44 | } |
||
45 | |||
46 | 1318 | public function getParagraphContent(): ?string |
|
56 | } |
||
57 | } |
||
58 |