Completed
Pull Request — master (#97)
by Alex
05:49 queued 03:13
created

Loader   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 4
dl 0
loc 18
ccs 6
cts 6
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCommonStandards() 0 9 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
}
35