PHP Interface Webmozart\Expression\Expression

Since: 1.0
Author: Bernhard Schussek ([email protected])
Afficher le fichier Open project: webmozart/expression Interface Usage Examples

Méthodes publiques

Méthode Description
equivalentTo ( Webmozart\Expression\Expression $other ) : boolean Returns whether this expression is logically equivalent to another expression.
evaluate ( mixed $value ) : boolean Evaluates the expression with the given value.
toString ( ) : string Returns a string representation of the expression.

Method Details

equivalentTo() public méthode

Returns whether this expression is logically equivalent to another expression.
public equivalentTo ( Webmozart\Expression\Expression $other ) : boolean
$other Webmozart\Expression\Expression Some expression.
Résultat boolean Returns `true` if the expressions are logically equivalent and `false` otherwise.

evaluate() public méthode

Evaluates the expression with the given value.
public evaluate ( mixed $value ) : boolean
$value mixed A value.
Résultat boolean Returns `true` if the value satisfies the expression and `false` otherwise.

toString() public méthode

Returns a string representation of the expression.
public toString ( ) : string
Résultat string The expression as string.