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

FixerAbstract   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 21
ccs 0
cts 5
cp 0
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
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