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