Completed
Push — master ( a8a6e5...b4d61a )
by Arne
04:19
created

StorageAdapterFactory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A requiresInstanceOf() 0 4 1
A getFactoryMap() 0 6 1
1
<?php
2
3
namespace Archivr\StorageAdapter;
4
5
use Archivr\AbstractFactory;
6
7
final class StorageAdapterFactory extends AbstractFactory
8
{
9
    protected static function requiresInstanceOf(): string
10
    {
11
        return StorageAdapterInterface::class;
12
    }
13
14
    protected static function getFactoryMap(): array
15
    {
16
        return [
17
            'local' => LocalStorageAdapter::class,
18
        ];
19
    }
20
}
21