class ComparableComparator implements Comparator

Class ComparableComparator

Comparator for objects implementing phootwork\lang\Comparable interface.

Methods

int
compare(mixed $a, mixed $b)

No description

Details

at line 29
int compare(mixed $a, mixed $b)

Parameters

mixed $a
mixed $b

Return Value

int Return Values: < 0 if the $a is less than $b

0 if the $a is greater than $b 0 if they are equal.

Exceptions

InvalidArgumentException If the objects don't implement phootwork\lang\Comparable interface.