FixerAbstract::setLogger()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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