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

CounterReport   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 14
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
/**
3
 * User: alec
4
 * Date: 29.11.18
5
 * Time: 21:02
6
 */
7
8
namespace AlecRabbit\Tools\Reports;
9
10
use AlecRabbit\Tools\Counter;
11
use AlecRabbit\Tools\Reports\Base\Report;
12
use AlecRabbit\Tools\Traits\CounterFields;
13
14
class CounterReport extends Report
15
{
16
    use CounterFields;
17
18
    /**
19
     * CounterReport constructor.
20
     * @param Counter $counter
21
     */
22 7
    public function __construct(Counter $counter)
23
    {
24 7
        $this->name = $counter->getName();
25 7
        $this->value = $counter->getValue();
26 7
        $this->step = $counter->getStep();
27 7
        parent::__construct();
28 7
    }
29
}
30