Total Complexity | 6 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Error implements ErrorInterface |
||
8 | { |
||
9 | /** @var int */ |
||
10 | protected $id; |
||
11 | |||
12 | /** @var ReportInterface|null */ |
||
13 | protected $report; |
||
14 | |||
15 | /** @var string|null */ |
||
16 | protected $message; |
||
17 | |||
18 | public function __toString(): string |
||
19 | { |
||
20 | return (string) $this->message; |
||
21 | } |
||
22 | |||
23 | public function getId(): ?int |
||
26 | } |
||
27 | |||
28 | public function getReport(): ?ReportInterface |
||
29 | { |
||
30 | return $this->report; |
||
31 | } |
||
32 | |||
33 | public function setReport(?ReportInterface $report): void |
||
34 | { |
||
35 | $this->report = $report; |
||
36 | } |
||
37 | |||
38 | public function getMessage(): ?string |
||
41 | } |
||
42 | |||
43 | public function setMessage(string $message): void |
||
46 | } |
||
47 | } |
||
48 |