PHP Class Webmozart\Expression\Constraint\Same

The comparison is done using PHP's "===" equality operator.
Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: extends Webmozart\Expression\Logic\Literal
Afficher le fichier Open project: webmozart/expression Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( mixed $comparedValue ) Creates the expression.
equivalentTo ( Webmozart\Expression\Expression $other )
evaluate ( $value )
getComparedValue ( ) : mixed Returns the compared value.
toString ( )

Method Details

__construct() public méthode

Creates the expression.
public __construct ( mixed $comparedValue )
$comparedValue mixed The compared value.

equivalentTo() public méthode

public equivalentTo ( Webmozart\Expression\Expression $other )
$other Webmozart\Expression\Expression

evaluate() public méthode

public evaluate ( $value )

getComparedValue() public méthode

Returns the compared value.
public getComparedValue ( ) : mixed
Résultat mixed The compared value.

toString() public méthode

public toString ( )