Completed
Push — issue/96 ( 7b0d36...8680e7 )
by Alex
03:01
created

Loader::getCommonStandards()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 6
cts 6
cp 1
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of the feed-io package.
5
 *
6
 * (c) Alexandre Debril <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace FeedIo\Standard;
13
14
15
use FeedIo\Rule\DateTimeBuilder;
16
17
class Loader
18
{
19
20
    /**
21
     * @param DateTimeBuilder $builder
22
     * @return array
23
     */
24 9
    public function getCommonStandards(DateTimeBuilder $builder)
25
    {
26
        return array(
27 9
            'json' => new Json($builder),
28 9
            'atom' => new Atom($builder),
29 9
            'rss' => new Rss($builder),
30 9
            'rdf' => new Rdf($builder),
31 9
        );        
32
    }
33
    
34
}