Test Failed
Push — master ( 772f18...8c594b )
by Alec
03:05
created

ProfilerReportFormatter   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 18
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
    public function setStyles(): void
19
    {
20
    }
21
22
    public function getString(): string
23
    {
24
        $r = '';
25
        foreach ($this->report->getReports() as $reports) {
26
            foreach ($reports as $report) {
27
                $r .= $report;
28
            }
29
        }
30
        return $r;
31
    }
32
}