Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
7 | final class Error |
||
8 | { |
||
9 | private string $message; |
||
10 | |||
11 | /** |
||
12 | * @psalm-var list<int|string> |
||
13 | */ |
||
14 | private array $valuePath; |
||
15 | |||
16 | /** |
||
17 | * @psalm-param list<int|string> $valuePath |
||
18 | */ |
||
19 | 144 | public function __construct(string $message, array $valuePath = []) |
|
23 | 144 | } |
|
24 | |||
25 | 44 | public function getMessage(): string |
|
26 | { |
||
27 | 44 | return $this->message; |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * @psalm-return list<int|string> |
||
32 | */ |
||
33 | 24 | public function getValuePath(): array |
|
36 | } |
||
37 | } |
||
38 |