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

BenchmarkFields   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 31
ccs 4
cts 6
cp 0.6667
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getIteration() 0 3 1
A getProfiler() 0 3 1
A getFunctions() 0 3 1
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