Counter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A inc() 0 4 1
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