Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | final class MarkdownInputWithFrontMatter extends MarkdownInput implements FrontMatterProviderInterface |
||
20 | { |
||
21 | /** @var mixed|null */ |
||
22 | private $frontMatter; |
||
23 | |||
24 | /** |
||
25 | * @param string $content Markdown content without the raw front matter |
||
26 | * @param int $lineOffset Line offset (based on number of front matter lines removed) |
||
27 | * @param mixed|null $frontMatter Parsed front matter |
||
28 | */ |
||
29 | 21 | public function __construct(string $content, int $lineOffset = 0, $frontMatter = null) |
|
34 | 21 | } |
|
35 | |||
36 | /** |
||
37 | * {@inheritDoc} |
||
38 | */ |
||
39 | 21 | public function getFrontMatter() |
|
44 |