Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class CacheStorageFactory |
||
18 | { |
||
19 | private string $redisUrl; |
||
20 | |||
21 | private string $mongodbUrl; |
||
22 | |||
23 | public function __construct(string $redisUrl = '', string $mongodbUrl = '') |
||
24 | { |
||
25 | $this->redisUrl = $redisUrl; |
||
26 | $this->mongodbUrl = $mongodbUrl; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param string $storage |
||
31 | * |
||
32 | * @return StorageInterface |
||
33 | * |
||
34 | * @throws Exception |
||
35 | */ |
||
36 | public function create(string $storage): StorageInterface |
||
45 | } |
||
46 | } |
||
48 |