Completed
Push — develop ( fe1195...b733eb )
by Alec
05:48
created

ProfilerReportFormatter   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getString() 0 9 3
A setStyles() 0 2 1
1
<?php
2
/**
3
 * User: alec
4
 * Date: 10.12.18
5
 * Time: 14:22
6
 */
7
declare(strict_types=1);
8
9
namespace AlecRabbit\Tools\Reports\Formatters;
10
11
use AlecRabbit\Tools\Reports\ProfilerReport;
12
13
class ProfilerReportFormatter extends Formatter
14
{
15
    /** @var ProfilerReport */
16
    protected $report;
17
18 6
    public function setStyles(): void
19
    {
20 6
    }
21
22 2
    public function getString(): string
23
    {
24 2
        $r = '';
25 2
        foreach ($this->report->getReports() as $reports) {
26 2
            foreach ($reports as $report) {
27 2
                $r .= $report;
28
            }
29
        }
30 2
        return $r;
31
    }
32
}
33