Overview

Namespaces

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

Classes

  • All
  • AtLeast
  • AtMost
  • Count
  • Exactly
  • Key
  • Method
  • Property
  • Selector
  • Overview
  • Namespace
  • Class

Class Selector

A logical selector.

Evaluates an expression for elements of a structured value.

Webmozart\Expression\Logic\Literal implements Webmozart\Expression\Expression
Extended by Webmozart\Expression\Selector\Selector

Direct known subclasses

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
Abstract
Namespace: Webmozart\Expression\Selector
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Selector/Selector.php
Methods summary
public
# __construct( Webmozart\Expression\Expression $expr )

Checks whether a value selected from the evaluated value matches an expression.

Checks whether a value selected from the evaluated value matches an expression.

Parameters

$expr
The expression to evaluate for the selected value.
public Webmozart\Expression\Expression
# getExpression( )

Returns the expression that is evaluated for the selected value.

Returns the expression that is evaluated for the selected value.

Returns

Webmozart\Expression\Expression
The inner expression.
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.

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()
Methods inherited from Webmozart\Expression\Expression
evaluate(), toString()
Properties summary
protected Webmozart\Expression\Expression $expr
#
Webmozart Expression API API documentation generated by ApiGen