1<?php
2
3/*
4 * This file is part of the league/commonmark package.
5 *
6 * (c) Colin O'Dell <colinodell@gmail.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace League\CommonMark\Event;
13
14use League\CommonMark\Block\Element\Document;
15
16/**
17 * Event dispatched when the document has been fully parsed
18 */
19final class DocumentParsedEvent extends AbstractEvent
20{
21    /** @var Document */
22    private $document;
23
24    public function __construct(Document $document)
25    {
26        $this->document = $document;
27    }
28
29    public function getDocument(): Document
30    {
31        return $this->document;
32    }
33}
34