Method |
Description |
|
all ( Webmozart\Expression\Expression $expr ) : All |
Check that all entries of a traversable value match an expression. |
|
andX ( array $conjuncts ) : AndX |
Create a conjunction. |
|
atLeast ( integer $count, Webmozart\Expression\Expression $expr ) : AtLeast |
Check that at least N entries of a traversable value match an expression. |
|
atMost ( integer $count, Webmozart\Expression\Expression $expr ) : AtMost |
Check that at most N entries of a traversable value match an expression. |
|
contains ( string $string ) : Contains |
Check that a value contains a given string. |
|
count ( Webmozart\Expression\Expression $expr ) : Count |
Check that the count of a collection matches an expression. |
|
endsWith ( string $suffix ) : EndsWith |
Check that a value ends with a given string. |
|
equals ( mixed $value ) : Equals |
Check that a value equals another value. |
|
exactly ( integer $count, Webmozart\Expression\Expression $expr ) : Exactly |
Check that exactly N entries of a traversable value match an expression. |
|
expr ( Webmozart\Expression\Expression $expr ) : Webmozart\Expression\Expression |
Returns the expression. |
|
false ( ) : AlwaysFalse |
Always false (contradiction). |
|
filter ( array | ArrayAcces\ArrayAccess | Traversabl\Traversable $collection, Webmozart\Expression\Expression $expr ) : array | ArrayAcces\ArrayAccess | Traversabl\Traversable |
Filter a collection for entries matching the expression. |
|
greaterThan ( mixed $value ) : GreaterThan |
Check that a value is greater than another value. |
|
greaterThanEqual ( mixed $value ) : GreaterThanEqual |
Check that a value is greater than or equal to another value. |
|
in ( array $values ) : In |
Check that a value occurs in a list of values. |
|
isEmpty ( ) : IsEmpty |
Check that a value is empty. |
|
isInstanceOf ( string $className ) : IsEmpty |
Check that a value is an instance of a given class. |
|
key ( string | integer $key, Webmozart\Expression\Expression $expr ) : Key |
Check that the value of an array key matches an expression. |
|
keyExists ( string $keyName ) : KeyExists |
Check that a value key exists. |
|
keyNotExists ( string $keyName ) : KeyNotExists |
Check that a value key does not exist. |
|
lessThan ( mixed $value ) : LessThan |
Check that a value is less than another value. |
|
lessThanEqual ( mixed $value ) : LessThanEqual |
Check that a value is less than or equal to another value. |
|
matches ( string $regExp ) : Matches |
Check that a value matches a regular expression. |
|
method ( string $methodName, $args ) : Method |
Check that the result of a method call matches an expression. |
|
not ( Webmozart\Expression\Expression $expr ) : Webmozart\Expression\Logic\Not |
Negate an expression. |
|
notEmpty ( ) : Webmozart\Expression\Logic\Not |
Check that a value is not empty. |
|
notEquals ( mixed $value ) : NotEquals |
Check that a value does not equal another value. |
|
notNull ( ) : NotSame |
Check that a value is not null. |
|
notSame ( mixed $value ) : NotSame |
Check that a value is not identical to another value. |
|
null ( ) : Same |
Check that a value is null. |
|
orX ( array $disjuncts ) : OrX |
Create a disjunction. |
|
property ( string $propertyName, Webmozart\Expression\Expression $expr ) : Method |
Check that the value of a property matches an expression. |
|
same ( mixed $value ) : Same |
Check that a value is identical to another value. |
|
startsWith ( string $prefix ) : StartsWith |
Check that a value starts with a given string. |
|
true ( ) : AlwaysTrue |
Always true (tautology). |
|