Total Complexity | 5 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | trait BenchmarkFields |
||
14 | { |
||
15 | /** @var array */ |
||
16 | protected $functions = []; |
||
17 | |||
18 | /** @var Profiler */ |
||
19 | protected $profiler; |
||
20 | |||
21 | /** @var int */ |
||
22 | protected $doneIterations = 0; |
||
23 | |||
24 | /** @var int */ |
||
25 | protected $doneIterationsCombined = 0; |
||
26 | |||
27 | /** @var Timer */ |
||
28 | private $timer; |
||
29 | |||
30 | |||
31 | /** |
||
32 | * @return array |
||
33 | */ |
||
34 | 5 | public function getFunctions(): array |
|
35 | { |
||
36 | 5 | return $this->functions; |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * @return Profiler |
||
41 | */ |
||
42 | 5 | public function getProfiler(): Profiler |
|
43 | { |
||
44 | 5 | return $this->profiler; |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * @return int |
||
49 | */ |
||
50 | 5 | public function getDoneIterations(): int |
|
51 | { |
||
52 | 5 | return $this->doneIterations; |
|
53 | } |
||
54 | |||
55 | /** |
||
56 | * @return Timer |
||
57 | */ |
||
58 | 5 | public function getTimer(): Timer |
|
61 | } |
||
62 | |||
63 | /** |
||
64 | * @return int |
||
65 | */ |
||
66 | 5 | public function getDoneIterationsCombined(): int |
|
69 | } |
||
70 | } |
||
71 |