Test Failed
Push — master ( 2fcf63...a2b1bc )
by Alec
02:17
created

SimpleCounter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A createEmptyReport() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace AlecRabbit\Counters;
4
5
use AlecRabbit\Counters\Core\AbstractCounter;
6
use AlecRabbit\Reports\Contracts\ReportInterface;
7
use AlecRabbit\Reports\SimpleCounterReport;
8
9
class SimpleCounter extends AbstractCounter
10
{
11
    protected function createEmptyReport(): ReportInterface
12
    {
13
        return (new SimpleCounterReport())->buildOn($this);
14
    }
15
}
16