FixerAbstract   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 25
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
correct() 0 1 ?
A setLogger() 0 6 1
1
<?php declare(strict_types=1);
2
/*
3
 * This file is part of the feed-io package.
4
 *
5
 * (c) Alexandre Debril <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace FeedIo\Reader;
12
13
use FeedIo\FeedInterface;
14
use Psr\Log\LoggerInterface;
15
16
abstract class FixerAbstract
17
{
18
19
    /**
20
     * @var \Psr\Log\LoggerInterface
21
     */
22
    protected $logger;
23
24
    /**
25
     * @param \Psr\Log\LoggerInterface
26
     * @return $this
27
     */
28 18
    public function setLogger(LoggerInterface $logger) : FixerAbstract
29
    {
30 18
        $this->logger = $logger;
31
32 18
        return $this;
33
    }
34
35
    /**
36
     * @param Result $result
37
     * @return FixerAbstract
38
     */
39
    abstract public function correct(Result $result) : FixerAbstract;
40
}
41