VoidCounter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A increment() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ProxyManagerTestAsset;
6
7
class VoidCounter
8
{
9
    /**
10
     * @var int
11
     */
12
    public $counter = 0;
13
14
    public function increment(int $amount) : void
15
    {
16
        $this->counter += $amount;
17
    }
18
}
19