Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function isBetterThan(Evaluation $other): bool |
||
30 | { |
||
31 | if (abs($this->score - $other->score) < self::EPSILON) { |
||
32 | // Scores are considered the same, prefer earliest decision. (Shallowest node) |
||
33 | return $this->age > $other->age; |
||
34 | } |
||
35 | return $this->score > $other->score; |
||
36 | } |
||
37 | |||
52 |