Overview

Namespaces

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

Classes

  • Expr

Interfaces

  • Expression
  • Overview
  • Namespace
  • Class

Interface Expression

A logical expression.

Direct known implementers

Webmozart\Expression\Logic\Conjunction, Webmozart\Expression\Logic\Disjunction, Webmozart\Expression\Logic\Literal

Indirect known implementers

Webmozart\Expression\Constraint\Contains, Webmozart\Expression\Constraint\EndsWith, Webmozart\Expression\Constraint\LessThan, Webmozart\Expression\Constraint\LessThanEqual, Webmozart\Expression\Constraint\Matches, Webmozart\Expression\Constraint\NotEquals, Webmozart\Expression\Constraint\NotSame, Webmozart\Expression\Constraint\Same, Webmozart\Expression\Constraint\StartsWith, Webmozart\Expression\Logic\AlwaysFalse, Webmozart\Expression\Logic\AlwaysTrue, Webmozart\Expression\Logic\Not, Webmozart\Expression\Constraint\Equals, Webmozart\Expression\Selector\All, Webmozart\Expression\Selector\AtLeast, Webmozart\Expression\Selector\AtMost, Webmozart\Expression\Selector\Count, Webmozart\Expression\Selector\Exactly, Webmozart\Expression\Selector\Key, Webmozart\Expression\Selector\Method, Webmozart\Expression\Selector\Property, Webmozart\Expression\Selector\Selector, Webmozart\Expression\Constraint\GreaterThan, Webmozart\Expression\Constraint\GreaterThanEqual, Webmozart\Expression\Constraint\In, Webmozart\Expression\Constraint\IsEmpty, Webmozart\Expression\Constraint\IsInstanceOf, Webmozart\Expression\Constraint\KeyExists, Webmozart\Expression\Constraint\KeyNotExists
Namespace: Webmozart\Expression
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Expression.php
Methods summary
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.
Webmozart Expression API API documentation generated by ApiGen