| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 8 | public function __construct(array $path, $message = null, Throwable $previous = null) |
|
| 21 | { |
||
| 22 | 8 | $this->path = $path; |
|
| 23 | 8 | if (!$message) { |
|
| 24 | 3 | $template = 'Can not access target at path `%s`'; |
|
| 25 | 3 | $message = sprintf($template, Paths::toString($path)); |
|
| 26 | } |
||
| 27 | 8 | parent::__construct($message, $previous); |
|
| 28 | 8 | } |
|
| 38 |