Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
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; |
||
31 | } |
||
38 |