Lines 100.00% 4 / 4
Methods 100.00% 4 / 4
Classes 100.00% 1 / 1
Covered by tests of size
Name Lines Methods CRAP
 __construct 100.00% 1 / 1 100.00% 1 / 1 1
 getData 100.00% 1 / 1 100.00% 1 / 1 1
 setOutput 100.00% 1 / 1 100.00% 1 / 1 1
 getOutput 100.00% 1 / 1 100.00% 1 / 1 1
26class PluginEvent extends Event
27{
28    private string $output = '';
29
30    public function __construct(
31        private readonly mixed $data,
32    ) {
33    }
34
35    public function getData(): mixed
36    {
37        return $this->data;
38    }
39
40    public function setOutput(string $output): void
41    {
42        $this->output .= $output;
43    }
44
45    public function getOutput(): string
46    {
47        return $this->output;
48    }
49}