Counter::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 4
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Aptarus\PromClient;
4
5
class Counter extends Metric
6
{
7
    public function __construct(
8
        $var,
9
        $help = "",
10
        $labels = null,
11
        $label_values = nulli
12
    ) {
13
        parent::__construct('counter', $var, $help, $labels, $label_values);
14
    }
15
16
    public function inc($value = 1)
17
    {
18
        $this->metricInc($value);
19
    }
20
}
21
22
// vim:sw=4 ts=4 et
23