Completed
Push — master ( fef7a6...aff413 )
by Arne
02:38
created

IndexMergerFactory   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\IndexMerger;
4
5
use Archivr\AbstractFactory;
6
7
final class IndexMergerFactory extends AbstractFactory
8
{
9
    protected static function requiresInstanceOf(): string
10
    {
11
        return IndexMergerInterface::class;
12
    }
13
14
    protected static function getFactoryMap(): array
15
    {
16
        return [
17
            'standard' => StandardIndexMerger::class,
18
        ];
19
    }
20
}
21