1 | <?php |
||
12 | class StorageException extends \Exception |
||
13 | { |
||
14 | /** |
||
15 | * Message for exception |
||
16 | */ |
||
17 | const DIRECTORY_NOT_FOUND = '%s is not directory or not exists'; |
||
18 | |||
19 | /** |
||
20 | * @var string Path to directory |
||
21 | */ |
||
22 | private $directory; |
||
23 | |||
24 | /** |
||
25 | * @var string Classname of Storage Provider |
||
26 | */ |
||
27 | private $provider; |
||
28 | |||
29 | /** |
||
30 | * Get path to directory which Storage Provider try to load |
||
31 | * @return string Path to directory |
||
32 | */ |
||
33 | public function getDirectory(): string |
||
37 | |||
38 | /** |
||
39 | * Set path to directory which Storage Provider try to load |
||
40 | * @param string $directory Path to directory |
||
41 | */ |
||
42 | public function setDirectory(string $directory) |
||
46 | |||
47 | /** |
||
48 | * Get classname of Storage provider |
||
49 | * @return string Classname of Storage Provider |
||
50 | */ |
||
51 | public function getProvider(): string |
||
55 | |||
56 | /** |
||
57 | * Set classname of Storage Provider |
||
58 | * @param string $provider Classname of Storage Provider |
||
59 | */ |
||
60 | public function setProvider(string $provider) |
||
64 | } |