Loader   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCommonStandards() 0 9 1
1
<?php declare(strict_types=1);
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
use FeedIo\Rule\DateTimeBuilder;
15
16
class Loader
17
{
18
19
    /**
20
     * @param DateTimeBuilder $builder
21
     * @return array
22
     */
23 11
    public function getCommonStandards(DateTimeBuilder $builder) : array
24
    {
25
        return [
26 11
            'json' => new Json($builder),
27 11
            'atom' => new Atom($builder),
28 11
            'rss' => new Rss($builder),
29 11
            'rdf' => new Rdf($builder),
30
        ];
31
    }
32
}
33