Overview

Namespaces

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

Classes

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

Class AtMost

Checks that at most N iterator entries match an expression.

Webmozart\Expression\Logic\Literal implements Webmozart\Expression\Expression
Extended by Webmozart\Expression\Selector\Selector
Extended by Webmozart\Expression\Selector\AtMost
Final
Namespace: Webmozart\Expression\Selector
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Selector/AtMost.php
Methods summary
public
# __construct( integer $count, Webmozart\Expression\Expression $expr )

Creates the expression.

Creates the expression.

Parameters

$count

The maximum number of entries that must match the expression.

$expr
The expression to evaluate with each entry.

Overrides

Webmozart\Expression\Selector\Selector::__construct()
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.

Overrides

Webmozart\Expression\Selector\Selector::equivalentTo()
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\Selector\Selector
getExpression()
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()
Properties inherited from Webmozart\Expression\Selector\Selector
$expr
Webmozart Expression API API documentation generated by ApiGen