Namespace PhpCommon\Comparison
PhpCommon\Comparison\Equivalence |
PhpCommon\Comparison\Hasher |
Comparable | Defines a method that a class implements to provide natural order of sorting to instances. |
Comparator | A strategy for sorting values. |
Equatable | Defines a method that a class implements to determine equality of instances. |
Equivalence | A strategy for determining whether two values are considered equivalent. |
Hashable | Defines a method that a class implements to provide hashing functionality. |
Hasher | A strategy for hashing values and comparing them for equivalence. |
IncomparableException | Thrown when values provided for comparison are incomparable. |
UnexpectedTypeException | Thrown when a value does not match an expected type. |