Overview

Namespaces

  • PhpCommon
    • Comparison
      • Equivalence
      • Hasher

Interfaces

  • Comparable
  • Comparator
  • Equatable
  • Equivalence
  • Hashable
  • Hasher

Exceptions

  • IncomparableException
  • UnexpectedTypeException
  • Overview
  • Namespace
  • Class

Namespace PhpCommon\Comparison

Namespaces summary
PhpCommon\Comparison\Equivalence
PhpCommon\Comparison\Hasher
Interfaces summary
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.
Exceptions summary
IncomparableException Thrown when values provided for comparison are incomparable.
UnexpectedTypeException Thrown when a value does not match an expected type.
PHPCommon Comparison API API documentation generated by ApiGen