Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class InvalidNodeDataException extends RuntimeException implements |
||
15 | ExceptionInterface, |
||
16 | PathAwareInterface, |
||
17 | DataAwareInterface |
||
18 | { |
||
19 | |||
20 | use PathAwareExceptionTrait; |
||
21 | |||
22 | private $data; |
||
23 | |||
24 | public function __construct($data, PathInterface $path, Throwable $previous = null) |
||
29 | } |
||
30 | |||
31 | private function buildMessage(): string |
||
32 | { |
||
33 | return "Invalid data in decoded JSON at {$this->buildPath()}"; |
||
34 | } |
||
35 | |||
36 | public function getData() |
||
39 | } |
||
40 | } |
||
41 |