Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | public function setDataDirectory(string $directory) |
||
37 | { |
||
38 | if (!is_dir($directory)) { |
||
39 | $exception = new StorageException(sprintf(StorageException::DIRECTORY_NOT_FOUND, $directory)); |
||
40 | $exception->setDirectory($exception); |
||
41 | $exception->setProvider(static::class); |
||
42 | throw $exception; |
||
43 | } |
||
44 | |||
45 | $this->dataDirectory = $directory; |
||
46 | } |
||
53 | } |