Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| SimilarSearchResultItem | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| compare | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | class SimilarSearchResultItem |
| 4 | { |
| 5 | public int $difference; |
| 6 | public string $diff; |
| 7 | public string $title; |
| 8 | public int $moveCount; |
| 9 | public TsumegoButton $tsumegoButton; |
| 10 | |
| 11 | public static function compare(self $a, self $b): int |
| 12 | { |
| 13 | return $a->difference <=> $b->difference; |
| 14 | } |
| 15 | } |