Completed
Push — master ( 301f3c...656cd4 )
by James
03:43
created

ReaderFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A factory() 0 8 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace BrowscapPHP\Util\Logfile;
5
6
/**
7
 * abstract parent class for all readers
8
 */
9
final class ReaderFactory
10
{
11
    /**
12
     * @return \BrowscapPHP\Util\Logfile\ReaderCollection
13
     */
14 1
    public static function factory() : ReaderCollection
15
    {
16 1
        $collection = new ReaderCollection();
17
18 1
        $collection->addReader(new ApacheCommonLogFormatReader());
19
20 1
        return $collection;
21
    }
22
}
23