Passed
Push — develop ( 84aa32...d180ee )
by Alec
02:42
created

ReportFormatter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 16
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
/**
3
 * User: alec
4
 * Date: 10.12.18
5
 * Time: 14:25
6
 */
7
declare(strict_types=1);
8
9
namespace AlecRabbit\Tools\Reports\Formatters;
10
11
use AlecRabbit\Tools\Contracts\StringConstants;
12
use AlecRabbit\Tools\Reports\Contracts\ReportInterface;
13
use AlecRabbit\Tools\Reports\Formatters\Contracts\Formatter;
14
15
abstract class ReportFormatter implements Formatter, StringConstants
16
{
17
    /** @var ReportInterface */
18
    protected $report;
19
20
    /**
21
     * Formatter constructor.
22
     * @param ReportInterface $report
23
     */
24 14
    public function __construct(ReportInterface $report)
25
    {
26 14
        $this->report = $report;
27 14
    }
28
29
    /** {@inheritdoc} */
30
    abstract public function getString(): string;
31
}
32