| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | final class ParentNotFoundException extends LogicException implements ExceptionInterface, PathAwareInterface |
||
| 15 | { |
||
| 16 | |||
| 17 | private $path; |
||
| 18 | |||
| 19 | public function __construct(PathInterface $path, Throwable $previous = null) |
||
| 20 | { |
||
| 21 | $this->path = $path; |
||
| 22 | parent::__construct("Parent not found in path {$this->buildPath()}", 0, $previous); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function getPath(): PathInterface |
||
| 26 | { |
||
| 27 | return $this->path; |
||
| 28 | } |
||
| 29 | |||
| 30 | private function buildPath(): string |
||
| 33 | } |
||
| 34 | } |
||
| 35 |