Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
21 | final class DocumentPreParsedEvent extends AbstractEvent |
||
22 | { |
||
23 | /** |
||
24 | * @var Document |
||
25 | * |
||
26 | * @psalm-readonly |
||
27 | */ |
||
28 | private $document; |
||
29 | |||
30 | /** @var string */ |
||
31 | private $input; |
||
32 | |||
33 | 249 | public function __construct(Document $document, string $input) |
|
34 | { |
||
35 | 249 | $this->document = $document; |
|
36 | 249 | $this->input = $input; |
|
37 | 249 | } |
|
38 | |||
39 | 246 | public function getDocument(): Document |
|
42 | } |
||
43 | |||
44 | 249 | public function getInput(): string |
|
45 | { |
||
46 | 249 | return $this->input; |
|
47 | } |
||
48 | |||
49 | 3 | public function replaceInput(string $input): void |
|
52 | 3 | } |
|
53 | } |
||
54 |