Completed
Pull Request — release/3.0 (#204)
by
unknown
04:44
created

FixerAbstract::setLogger()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
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
    public function setLogger(LoggerInterface $logger)
29
    {
30
        $this->logger = $logger;
31
32
        return $this;
33
    }
34
35
    abstract public function correct(FeedInterface $feed);
36
}
37