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

Report   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 18
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 4 1
A __construct() 0 3 1
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