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

CounterFields::getStep()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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