| Total Complexity | 4 |
| Total Lines | 45 |
| 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 Timer */ |
||
| 25 | private $timer; |
||
| 26 | |||
| 27 | |||
| 28 | /** |
||
| 29 | * @return array |
||
| 30 | */ |
||
| 31 | 3 | public function getFunctions(): array |
|
| 32 | { |
||
| 33 | 3 | return $this->functions; |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return Profiler |
||
| 38 | */ |
||
| 39 | 3 | public function getProfiler(): Profiler |
|
| 40 | { |
||
| 41 | 3 | return $this->profiler; |
|
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return int |
||
| 46 | */ |
||
| 47 | 3 | public function getDoneIterations(): int |
|
| 48 | { |
||
| 49 | 3 | return $this->doneIterations; |
|
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return Timer |
||
| 54 | */ |
||
| 55 | 3 | public function getTimer(): Timer |
|
| 58 | } |
||
| 59 | } |
||
| 60 |