Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
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 |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return int |
||
39 | */ |
||
40 | 2 | public function getIteration(): int |
|
45 |