Completed
Push — master ( ea47a1...c15373 )
by Alec
06:51 queued 01:27
created

Report::__toString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 0
cp 0
crap 2
1
<?php
2
/**
3
 * User: alec
4
 * Date: 29.11.18
5
 * Time: 20:57
6
 */
7
8
namespace AlecRabbit\Tools\Reports\Base;
9
10
use AlecRabbit\Tools\Reports\Contracts\ReportInterface;
11
use AlecRabbit\Tools\Reports\Factory;
12
use function AlecRabbit\brackets;
13
use function AlecRabbit\typeOf;
14
15
class Report implements ReportInterface
16
{
17
18
    protected $formatter;
19 1
20
    public function __construct(ReportInterface $report)
21
    {
22 1
        $this->formatter = Factory::makeFormatter($report);
23
    }
24
25
26
    /**
27
     * @return string
28
     */
29
    public function __toString(): string
30
    {
31
        return
32
            brackets(typeOf($this) . '::' . __FUNCTION__) . ' Not implemented!';
33
    }
34
}
35