| Total Complexity | 5 |
| Total Lines | 46 |
| 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 | * @psalm-var list<int|string> |
||
| 17 | */ |
||
| 18 | private array $parameters; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @psalm-param list<int|string> $valuePath |
||
| 22 | */ |
||
| 23 | 372 | public function __construct(string $message, array $valuePath = [], array $parameters = []) |
|
| 28 | } |
||
| 29 | |||
| 30 | 85 | public function getMessage(): string |
|
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @psalm-return list<int|string> |
||
| 37 | */ |
||
| 38 | 87 | public function getValuePath(bool $escape = false): array |
|
| 47 | ); |
||
| 48 | } |
||
| 49 | |||
| 50 | 83 | public function getParameters(): array |
|
| 55 |