Loader::getCommonStandards()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 5
cts 5
cp 1
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 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