PHP Class Webmozart\Expression\Constraint\LessThan

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

Public Methods

Method 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 method

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

equivalentTo() public method

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

evaluate() public method

public evaluate ( $value )

getComparedValue() public method

Returns the compared value.
public getComparedValue ( ) : mixed
return mixed The compared value.

toString() public method

public toString ( )