| Total Complexity | 5 |
| Total Lines | 51 |
| 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 | /** @var array */ |
||
| 23 | private $exceptionMessages = []; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return array |
||
| 27 | */ |
||
| 28 | 2 | public function getFunctions(): array |
|
| 29 | { |
||
| 30 | 2 | return $this->functions; |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return Profiler |
||
| 35 | */ |
||
| 36 | 2 | public function getProfiler(): Profiler |
|
| 37 | { |
||
| 38 | 2 | return $this->profiler; |
|
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return int |
||
| 43 | */ |
||
| 44 | 2 | public function getTotalIterations(): int |
|
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return bool |
||
| 51 | */ |
||
| 52 | 2 | public function isWithResults(): bool |
|
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return array |
||
| 59 | */ |
||
| 60 | 2 | public function getExceptionMessages(): array |
|
| 63 | } |
||
| 64 | } |
||
| 65 |