Open Journal Systems  3.3.0
Seboettg\Collection\Test\MyCustomOrderComparator Class Reference
Inheritance diagram for Seboettg\Collection\Test\MyCustomOrderComparator:
Seboettg\Collection\Comparator

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
 

Detailed Description

Definition at line 98 of file CollectionsTest.php.

Member Function Documentation

◆ compare()

Seboettg\Collection\Test\MyCustomOrderComparator::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.

Parameters
Comparable$a
Comparable$b
Returns
int

Reimplemented from Seboettg\Collection\Comparator.

Definition at line 109 of file CollectionsTest.php.


The documentation for this class was generated from the following file: