| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | * @param ExceptionContract $previous Previous Exception if nested exception |
||
| 23 | */ |
||
| 24 | public static function forDirectory(string $directory, ExceptionContract $previous = null): ExceptionContract |
||
| 25 | { |
||
| 26 | $message = sprintf(static::MESSAGE_TEMPLATE, $directory); |
||
| 27 | $self = new static($message, self::CODE, $previous); |
||
| 28 | $self->directory = $directory; |
||
| 29 | |||
| 30 | return $self; |
||
| 38 |