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