| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | final class RenderedContentWithFrontMatter extends RenderedContent implements FrontMatterProviderInterface |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var mixed |
||
| 27 | * |
||
| 28 | * @psalm-readonly |
||
| 29 | */ |
||
| 30 | private $frontMatter; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param Document $document The parsed Document object |
||
| 34 | * @param string $html The final HTML |
||
| 35 | * @param mixed|null $frontMatter Any parsed front matter |
||
| 36 | */ |
||
| 37 | 6 | public function __construct(Document $document, string $html, $frontMatter) |
|
| 38 | { |
||
| 39 | 6 | parent::__construct($document, $html); |
|
| 40 | |||
| 41 | 6 | $this->frontMatter = $frontMatter; |
|
| 42 | 6 | } |
|
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritDoc} |
||
| 46 | */ |
||
| 47 | 6 | public function getFrontMatter() |
|
| 50 | } |
||
| 51 | } |
||
| 52 |