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

BenchmarkFields::getIteration()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * User: alec
4
 * Date: 01.12.18
5
 * Time: 20:33
6
 */
7
8
namespace AlecRabbit\Tools\Traits;
9
10
use AlecRabbit\Tools\Profiler;
11
12
trait BenchmarkFields
13
{
14
    /** @var array */
15
    protected $functions = [];
16
    /** @var Profiler */
17
    protected $profiler;
18
    /** @var int */
19
    protected $iteration = 0;
20
21
    /**
22
     * @return array
23
     */
24 2
    public function getFunctions(): array
25
    {
26 2
        return $this->functions;
27
    }
28
29
    /**
30
     * @return Profiler
31
     */
32 1
    public function getProfiler(): Profiler
33
    {
34 1
        return $this->profiler;
35
    }
36
37
    /**
38
     * @return int
39
     */
40
    public function getIteration(): int
41
    {
42
        return $this->iteration;
43
    }
44
}
45