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

ReaderFactory::getReaders()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2.032

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 10
ccs 4
cts 5
cp 0.8
rs 9.4285
cc 2
eloc 5
nc 2
nop 0
crap 2.032
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