Total Complexity | 2 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
21 | class FilesystemFactory implements ConcreteAdapterFactoryInterface |
||
22 | { |
||
23 | 1 | public function create(CachePoolConfigurationInterface $configuration): CacheItemPoolInterface |
|
24 | { |
||
25 | // TODO: Marshaller |
||
26 | 1 | return new FilesystemAdapter( |
|
27 | 1 | $configuration->getNamespace(), |
|
28 | 1 | $configuration->getDefaultLifetime(), |
|
29 | 1 | $configuration->getDirectory(), |
|
30 | 1 | ); |
|
31 | } |
||
32 | |||
33 | 3 | public function type(): string |
|
36 | } |
||
37 | } |
||
38 |