<?php
declare(strict_types=1);
namespace League\CommonMark\Parser;
use League\CommonMark\Parser\Block\BlockContinueParserInterface;
use League\CommonMark\Parser\Block\ParagraphParser;
final class MarkdownParserState implements MarkdownParserStateInterface
{
private BlockContinueParserInterface $activeBlockParser;
private BlockContinueParserInterface $lastMatchedBlockParser;
public function __construct(BlockContinueParserInterface $activeBlockParser, BlockContinueParserInterface $lastMatchedBlockParser)
{
$this->activeBlockParser = $activeBlockParser;
$this->lastMatchedBlockParser = $lastMatchedBlockParser;
}
public function getActiveBlockParser(): BlockContinueParserInterface
{
return $this->activeBlockParser;
}
public function getLastMatchedBlockParser(): BlockContinueParserInterface
{
return $this->lastMatchedBlockParser;
}