Completed
Push — develop ( 28a887...d46380 )
by Stan
02:57
created

CounterSamplesBuilder::initialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Krenor\Prometheus\Storage\Builders;
4
5
use Krenor\Prometheus\Metrics\Counter;
6
use Tightenco\Collect\Support\Collection;
7
use Krenor\Prometheus\Contracts\SamplesBuilder;
8
9
class CounterSamplesBuilder extends SamplesBuilder
10
{
11
    /**
12
     * @var Counter
13
     */
14
    protected $metric;
15
16
    /**
17
     * CounterSamplesBuilder constructor.
18
     *
19
     * @param Counter $counter
20
     * @param Collection $items
21
     */
22 7
    public function __construct(Counter $counter, Collection $items)
23
    {
24 7
        parent::__construct($counter, $items);
25 7
    }
26
27
    /**
28
     * @return int
29
     */
30
    protected function initialize(): int
31
    {
32
        return 0;
33
    }
34
}
35