Completed
Push — develop ( f10e50...4f888d )
by Alec
03:20
created

CounterFields   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 24
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getValue() 0 3 1
A getStep() 0 3 1
1
<?php
2
/**
3
 * User: alec
4
 * Date: 30.11.18
5
 * Time: 17:42
6
 */
7
8
namespace AlecRabbit\Tools\Traits;
9
10
use AlecRabbit\Traits\GettableName;
11
12
trait CounterFields
13
{
14
    use GettableName;
15
16
    /** @var int */
17
    protected $value;
18
19
    /** @var int */
20
    protected $step;
21
22
    /**
23
     * @return int
24
     */
25 6
    public function getStep(): int
26
    {
27 6
        return $this->step;
28
    }
29
30
    /**
31
     * @return int
32
     */
33 9
    public function getValue(): int
34
    {
35 9
        return $this->value;
36
    }
37
}
38