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

ReportFormatter::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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