| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | trait HasTieBreaker |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var ?float |
||
| 14 | */ |
||
| 15 | protected $tieBreaker; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param float $tieBreaker |
||
| 19 | * |
||
| 20 | * @return $this |
||
| 21 | */ |
||
| 22 | public function setTieBreaker(float $tieBreaker) |
||
| 23 | { |
||
| 24 | $this->tieBreaker = $tieBreaker; |
||
| 25 | |||
| 26 | return $this; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return float|null |
||
| 31 | */ |
||
| 32 | public function getTieBreaker(): ?float |
||
| 35 | } |
||
| 36 | } |
||
| 37 |