Passed
Push — master ( a2b1bc...228ac7 )
by Alec
03:07
created

SimpleCounter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 9
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 declare(strict_types=1);
2
3
namespace AlecRabbit\Counters;
4
5
use AlecRabbit\Counters\Core\AbstractCounter;
6
use AlecRabbit\Formatters\SimpleCounterReportFormatter;
7
use AlecRabbit\Reports\SimpleCounterReport;
8
9
class SimpleCounter extends AbstractCounter
10
{
11
    /** {@inheritDoc} */
12 26
    public function __construct(?string $name = null, ?int $step = null, int $initialValue = 0)
13
    {
14 26
        parent::__construct($name, $step, $initialValue);
15 26
        $this->setBindings(
16 26
            SimpleCounterReport::class,
17 26
            SimpleCounterReportFormatter::class
18
        );
19 26
    }
20
}
21