IdenticalBinaryConstraint
extends Constraint
in package
A binary safe string comparison.
Tags
Table of Contents
- $value : mixed
- __construct() : mixed
- matches() : bool
- Evaluates the constraint for parameter $other. Returns TRUE if the constraint is met, FALSE otherwise.
- toString() : string
- Returns a string representation of the constraint.
- asHexString() : string
- Get the given string of bytes as a stirng of Hexadecimal sequences.
Properties
$value
protected
mixed
$value
Methods
__construct()
public
__construct(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —matches()
Evaluates the constraint for parameter $other. Returns TRUE if the constraint is met, FALSE otherwise.
public
matches(mixed $other) : bool
Parameters
- $other : mixed
-
Value or object to evaluate.
Return values
bool —toString()
Returns a string representation of the constraint.
public
toString() : string
Return values
string —asHexString()
Get the given string of bytes as a stirng of Hexadecimal sequences.
private
asHexString(string $binary) : string
Parameters
- $binary : string