|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| compare (Comparable $a, Comparable $b) | |
Public Member Functions inherited from Seboettg\Collection\Comparator | |
| __construct ($sortingOrder=self::ORDER_ASC, $customOrder=null) | |
Additional Inherited Members | |
Data Fields inherited from Seboettg\Collection\Comparator | |
| const | ORDER_ASC = "ASC" |
| const | ORDER_CUSTOM = "CUSTOM" |
| const | ORDER_DESC = "DESC" |
Protected Attributes inherited from Seboettg\Collection\Comparator | |
| $customOrder | |
| $sortingOrder | |
Definition at line 66 of file CollectionsTest.php.
| Seboettg\Collection\Test\MyAscendingComparator::compare | ( | Comparable | $a, |
| Comparable | $b | ||
| ) |
Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
| Comparable | $a | |
| Comparable | $b |
Reimplemented from Seboettg\Collection\Comparator.
Definition at line 76 of file CollectionsTest.php.
References Seboettg\Collection\Comparable\compareTo().