Completed
Push — develop ( 35365a...6b618f )
by Alec
03:18
created

BenchmarkFields::getFunctions()   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: 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 2
    public function getProfiler(): Profiler
33
    {
34 2
        return $this->profiler;
35
    }
36
37
    /**
38
     * @return int
39
     */
40 2
    public function getIteration(): int
41
    {
42 2
        return $this->iteration;
43
    }
44
}
45