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

ReaderFactory::factory()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

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