| Total Complexity | 5 |
| Total Lines | 35 |
| 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 | private $data; |
||
| 21 | |||
| 22 | private $path; |
||
| 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 | public function getPath(): PathInterface |
||
| 42 | { |
||
| 43 | return $this->path; |
||
| 44 | } |
||
| 45 | |||
| 46 | private function buildPath(): string |
||
| 49 | } |
||
| 50 | } |
||
| 51 |