Class GenericEquivalence
Base class for implementations of generic equivalence relations.
- PhpCommon\Comparison\Equivalence\GenericEquivalence implements PhpCommon\Comparison\Equivalence
Direct known subclasses
PhpCommon\Comparison\Hasher\GenericHasherIndirect known subclasses
PhpCommon\Comparison\Hasher\IdentityHasher, PhpCommon\Comparison\Hasher\ValueHasherNamespace: PhpCommon\Comparison\Equivalence
Author: Marcos Passos marcos@marcospassos.com
Located at Equivalence/GenericEquivalence.php
public
boolean
|
#
equivalent( mixed $left, mixed $right )
Checks whether the specified values are considered equivalent. |
abstract protected
boolean
|
#
equivalentArray( array $left, mixed $right )
Checks whether an array is equivalent to another value. |
abstract protected
boolean
|
#
equivalentBoolean( boolean $left, mixed $right )
Checks whether a boolean value is equivalent to another value. |
abstract protected
boolean
|
#
equivalentFloat( float $left, mixed $right )
Checks whether a floating-point number is equivalent to another value. |
abstract protected
boolean
|
#
equivalentInteger( integer $left, mixed $right )
Checks whether an integer number is equivalent to another value. |
abstract protected
boolean
|
|
abstract protected
boolean
|
#
equivalentObject( object $left, mixed $right )
Checks whether an object is equivalent to another value. |
abstract protected
boolean
|
#
equivalentResource( resource $left, mixed $right )
Checks whether a resource is equivalent to another value. |
abstract protected
boolean
|
#
equivalentString( string $left, mixed $right )
Checks whether a string is equivalent to another value. |
equals()
|
string |
TYPE_ARRAY
Constant that represents the primitive type array . |
#
'array'
|
string |
TYPE_BOOLEAN
Constant that represents the primitive type boolean. |
#
'boolean'
|
string |
TYPE_DOUBLE
Constant that represents the primitive type double. |
#
'double'
|
string |
TYPE_INTEGER
Constant that represents the primitive type integer. |
#
'integer'
|
string |
TYPE_NULL
Constant that represents the primitive type NULL. |
#
'NULL'
|
string |
TYPE_OBJECT
Constant that represents the primitive type object. |
#
'object'
|
string |
TYPE_RESOURCE
Constant that represents the primitive type resource. |
#
'resource'
|
string |
TYPE_STRING
Constant that represents the primitive type string. |
#
'string'
|