Total Complexity | 4 |
Total Lines | 41 |
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 $totalIterations = 0; |
||
20 | /** @var bool */ |
||
21 | protected $withResults = false; |
||
22 | |||
23 | /** |
||
24 | * @return array |
||
25 | */ |
||
26 | 2 | public function getFunctions(): array |
|
27 | { |
||
28 | 2 | return $this->functions; |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * @return Profiler |
||
33 | */ |
||
34 | 2 | public function getProfiler(): Profiler |
|
35 | { |
||
36 | 2 | return $this->profiler; |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * @return int |
||
41 | */ |
||
42 | 2 | public function getTotalIterations(): int |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * @return bool |
||
49 | */ |
||
50 | 2 | public function isWithResults(): bool |
|
53 | } |
||
54 | } |
||
55 |