<?php
declare(strict_types=1);
namespace League\CommonMark\Event;
use League\CommonMark\Output\RenderedContentInterface;
final class DocumentRenderedEvent extends AbstractEvent
{
private RenderedContentInterface $output;
public function __construct(RenderedContentInterface $output)
{
$this->output = $output;
}
public function getOutput(): RenderedContentInterface
{
return $this->output;
}
public function replaceOutput(RenderedContentInterface $output): void
{
$this->output = $output;
}
}