Overview

Namespaces

  • Webmozart
    • Expression
      • Constraint
      • Logic
      • PhpUnit
      • Selector
      • Traversal
      • Util

Classes

  • Contains
  • EndsWith
  • Equals
  • GreaterThan
  • GreaterThanEqual
  • In
  • IsEmpty
  • IsInstanceOf
  • KeyExists
  • KeyNotExists
  • LessThan
  • LessThanEqual
  • Matches
  • NotEquals
  • NotSame
  • Same
  • StartsWith
  • Overview
  • Namespace
  • Class

Class LessThan

Checks that a value is less than a given value.

The comparison is done using PHP's "<" comparison operator.

Webmozart\Expression\Logic\Literal implements Webmozart\Expression\Expression
Extended by Webmozart\Expression\Constraint\LessThan
Final
Namespace: Webmozart\Expression\Constraint
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Constraint/LessThan.php
Methods summary
public
# __construct( mixed $comparedValue )

Creates the expression.

Creates the expression.

Parameters

$comparedValue
The compared value.
public mixed
# getComparedValue( )

Returns the compared value.

Returns the compared value.

Returns

mixed
The compared value.
public boolean
# evaluate( mixed $value )

Evaluates the expression with the given value.

Evaluates the expression with the given value.

Parameters

$value
A value.

Returns

boolean

Returns true if the value satisfies the expression and false otherwise.

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

Returns whether this expression is logically equivalent to another expression.

Returns whether this expression is logically equivalent to another expression.

Parameters

$other
Some expression.

Returns

boolean

Returns true if the expressions are logically equivalent and false otherwise.

public string
# toString( )

Returns a string representation of the expression.

Returns a string representation of the expression.

Returns

string
The expression as string.
Methods inherited from Webmozart\Expression\Logic\Literal
__toString(), andAll(), andAtLeast(), andAtMost(), andContains(), andCount(), andEmpty(), andEndsWith(), andEquals(), andExactly(), andFalse(), andGreaterThan(), andGreaterThanEqual(), andIn(), andInstanceOf(), andKey(), andKeyExists(), andKeyNotExists(), andLessThan(), andLessThanEqual(), andMatches(), andMethod(), andNot(), andNotEmpty(), andNotEquals(), andNotNull(), andNotSame(), andNull(), andProperty(), andSame(), andStartsWith(), andTrue(), andX(), orAll(), orAtLeast(), orAtMost(), orContains(), orCount(), orEmpty(), orEndsWith(), orEquals(), orExactly(), orFalse(), orGreaterThan(), orGreaterThanEqual(), orIn(), orInstanceOf(), orKey(), orKeyExists(), orKeyNotExists(), orLessThan(), orLessThanEqual(), orMatches(), orMethod(), orNot(), orNotEmpty(), orNotEquals(), orNotNull(), orNotSame(), orNull(), orProperty(), orSame(), orStartsWith(), orTrue(), orX()
Webmozart Expression API API documentation generated by ApiGen