Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 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
 
12
declare(strict_types=1);
13
 
14
namespace League\CommonMark\Event;
15
 
16
use League\CommonMark\Output\RenderedContentInterface;
17
 
18
final class DocumentRenderedEvent extends AbstractEvent
19
{
20
    private RenderedContentInterface $output;
21
 
22
    public function __construct(RenderedContentInterface $output)
23
    {
24
        $this->output = $output;
25
    }
26
 
27
    /**
28
     * @psalm-mutation-free
29
     */
30
    public function getOutput(): RenderedContentInterface
31
    {
32
        return $this->output;
33
    }
34
 
35
    /**
36
     * @psalm-external-mutation-free
37
     */
38
    public function replaceOutput(RenderedContentInterface $output): void
39
    {
40
        $this->output = $output;
41
    }
42
}