Total Complexity | 6 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | final class MarkdownParserState implements MarkdownParserStateInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var BlockContinueParserInterface |
||
26 | * |
||
27 | * @psalm-readonly |
||
28 | */ |
||
29 | private $activeBlockParser; |
||
30 | |||
31 | /** |
||
32 | * @var BlockContinueParserInterface |
||
33 | * |
||
34 | * @psalm-readonly |
||
35 | */ |
||
36 | private $lastMatchedBlockParser; |
||
37 | |||
38 | 2340 | public function __construct(BlockContinueParserInterface $activeBlockParser, BlockContinueParserInterface $lastMatchedBlockParser) |
|
39 | { |
||
40 | 2340 | $this->activeBlockParser = $activeBlockParser; |
|
41 | 2340 | $this->lastMatchedBlockParser = $lastMatchedBlockParser; |
|
42 | 2340 | } |
|
43 | |||
44 | 237 | public function getActiveBlockParser(): BlockContinueParserInterface |
|
45 | { |
||
46 | 237 | return $this->activeBlockParser; |
|
47 | } |
||
48 | |||
49 | 393 | public function getLastMatchedBlockParser(): BlockContinueParserInterface |
|
52 | } |
||
53 | |||
54 | 1734 | public function getParagraphContent(): ?string |
|
64 | } |
||
65 | } |
||
66 |