| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 80% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | final class DocumentPreParsedEvent extends AbstractEvent |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var Document |
||
| 26 | * |
||
| 27 | * @psalm-readonly |
||
| 28 | */ |
||
| 29 | private $document; |
||
| 30 | |||
| 31 | /** @var MarkdownInputInterface */ |
||
| 32 | private $markdown; |
||
| 33 | |||
| 34 | 2784 | public function __construct(Document $document, MarkdownInputInterface $markdown) |
|
| 35 | { |
||
| 36 | 2784 | $this->document = $document; |
|
| 37 | 2784 | $this->markdown = $markdown; |
|
| 38 | 2784 | } |
|
| 39 | |||
| 40 | 3 | public function getDocument(): Document |
|
| 41 | { |
||
| 42 | 3 | return $this->document; |
|
| 43 | } |
||
| 44 | |||
| 45 | 2781 | public function getMarkdown(): MarkdownInputInterface |
|
| 46 | { |
||
| 47 | 2781 | return $this->markdown; |
|
| 48 | } |
||
| 49 | |||
| 50 | public function replaceMarkdown(MarkdownInputInterface $markdownInput): void |
||
| 53 | } |
||
| 54 | } |
||
| 55 |