<?phpdeclare(strict_types=1);
/*
* This file is part of the league/commonmark package.
*
* (c) Colin O'Dell <colinodell@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/namespaceLeague\CommonMark\Event;
useLeague\CommonMark\Node\Block\Document;
/**
* Event dispatched just before rendering begins
*/finalclassDocumentPreRenderEventextendsAbstractEvent{
/** @psalm-readonly */private Document $document;
/** @psalm-readonly */privatestring$format;
publicfunction__construct(Document $document, string$format)
{
$this->document = $document;
$this->format = $format;
}
publicfunctiongetDocument(): Document{
return$this->document;
}
publicfunctiongetFormat(): string{
return$this->format;
}
}