Counter::inc()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
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