Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
24 | 4 | public function CompareToDaftSortableObject(DaftSortableObject $otherObject) : int |
|
25 | { |
||
26 | 4 | foreach (static::DaftSortableObjectProperties() as $property) { |
|
27 | 4 | $sort = $this->__get($property) <=> $otherObject->__get($property); |
|
28 | |||
29 | 4 | if (0 !== $sort) { |
|
30 | 4 | return $sort; |
|
31 | } |
||
32 | } |
||
33 | |||
34 | 4 | return 0; |
|
35 | } |
||
57 |