| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 5 | class BenchmarkRelative |
||
| 6 | { |
||
| 7 | /** @var int */ |
||
| 8 | private $rank; |
||
| 9 | |||
| 10 | /** @var float */ |
||
| 11 | private $relative; |
||
| 12 | |||
| 13 | /** @var null|BenchmarkResult */ |
||
| 14 | private $benchmarkResult; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * BenchmarkRelative constructor. |
||
| 18 | * @param int $rank |
||
| 19 | * @param float $relative |
||
| 20 | * @param null|BenchmarkResult $result |
||
| 21 | */ |
||
| 22 | public function __construct(int $rank, float $relative, ?BenchmarkResult $result) |
||
| 23 | { |
||
| 24 | $this->rank = $rank; |
||
| 25 | $this->relative = $relative; |
||
| 26 | $this->benchmarkResult = $result; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return int |
||
| 31 | */ |
||
| 32 | public function getRank(): int |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return float |
||
| 39 | */ |
||
| 40 | public function getRelative(): float |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return null|BenchmarkResult |
||
| 47 | */ |
||
| 48 | public function getBenchmarkResult(): ?BenchmarkResult |
||
| 51 | } |
||
| 52 | } |
||
| 53 |