Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
CommonMarkRenderedContentWithTableOfContentsLinks.php 533 B
<?php

declare(strict_types=1);

namespace Distantmagic\Resonance;

use League\CommonMark\Node\Block\Document;
use League\CommonMark\Output\RenderedContent;

class CommonMarkRenderedContentWithTableOfContentsLinks extends RenderedContent
{
    /**
     * @param array<CommonMarkTableOfContentsLink> $tableOfContentsLinks
     */
    public function __construct(
        Document $document,
        string $content,
        public readonly array $tableOfContentsLinks
    ) {
        parent::__construct($document, $content);
    }
}