Метод | Описание | |
---|---|---|
all ( Webmozart\Expression\Expression $expr ) : |
Check that all entries of a traversable value match an expression. | |
andX ( array $conjuncts ) : |
Create a conjunction. | |
atLeast ( integer $count, Webmozart\Expression\Expression $expr ) : |
Check that at least N entries of a traversable value match an expression. | |
atMost ( integer $count, Webmozart\Expression\Expression $expr ) : |
Check that at most N entries of a traversable value match an expression. | |
contains ( string $string ) : |
Check that a value contains a given string. | |
count ( Webmozart\Expression\Expression $expr ) : |
Check that the count of a collection matches an expression. | |
endsWith ( string $suffix ) : |
Check that a value ends with a given string. | |
equals ( mixed $value ) : |
Check that a value equals another value. | |
exactly ( integer $count, Webmozart\Expression\Expression $expr ) : |
Check that exactly N entries of a traversable value match an expression. | |
expr ( Webmozart\Expression\Expression $expr ) : Webmozart\Expression\Expression | Returns the expression. | |
false ( ) : |
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 ) : |
Check that a value is greater than another value. | |
greaterThanEqual ( mixed $value ) : |
Check that a value is greater than or equal to another value. | |
in ( array $values ) : |
Check that a value occurs in a list of values. | |
isEmpty ( ) : |
Check that a value is empty. | |
isInstanceOf ( string $className ) : |
Check that a value is an instance of a given class. | |
key ( string | integer $key, Webmozart\Expression\Expression $expr ) : |
Check that the value of an array key matches an expression. | |
keyExists ( string $keyName ) : |
Check that a value key exists. | |
keyNotExists ( string $keyName ) : |
Check that a value key does not exist. | |
lessThan ( mixed $value ) : |
Check that a value is less than another value. | |
lessThanEqual ( mixed $value ) : |
Check that a value is less than or equal to another value. | |
matches ( string $regExp ) : |
Check that a value matches a regular expression. | |
method ( string $methodName, $args ) : |
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 ) : |
Check that a value does not equal another value. | |
notNull ( ) : |
Check that a value is not null. | |
notSame ( mixed $value ) : |
Check that a value is not identical to another value. | |
null ( ) : |
Check that a value is null. | |
orX ( array $disjuncts ) : |
Create a disjunction. | |
property ( string $propertyName, Webmozart\Expression\Expression $expr ) : |
Check that the value of a property matches an expression. | |
same ( mixed $value ) : |
Check that a value is identical to another value. | |
startsWith ( string $prefix ) : |
Check that a value starts with a given string. | |
true ( ) : |
Always true (tautology). |
Метод | Описание | |
---|---|---|
__construct ( ) | This class cannot be instantiated. |
public static all ( Webmozart\Expression\Expression $expr ) : |
||
$expr | Webmozart\Expression\Expression | The evaluated expression. |
Результат | The created expression. |
public static count ( Webmozart\Expression\Expression $expr ) : |
||
$expr | Webmozart\Expression\Expression | The evaluated expression. |
Результат | The created expression. |
public static expr ( Webmozart\Expression\Expression $expr ) : Webmozart\Expression\Expression | ||
$expr | Webmozart\Expression\Expression | An expression. |
Результат | Webmozart\Expression\Expression | The expression. |
public static false ( ) : |
||
Результат | The created expression. |
public static filter ( array | ArrayAcces\ArrayAccess | Traversabl\Traversable $collection, Webmozart\Expression\Expression $expr ) : array | ArrayAcces\ArrayAccess | Traversabl\Traversable | ||
$collection | array | ArrayAcces\ArrayAccess | Traversabl\Traversable | An array or an object implementing Traversable and ArrayAccess. |
$expr | Webmozart\Expression\Expression | The expression to evaluate for each entry. |
Результат | array | ArrayAcces\ArrayAccess | Traversabl\Traversable | The filtered collection. |
public static greaterThan ( mixed $value ) : |
||
$value | mixed | The compared value. |
Результат | The created expression. |
public static greaterThanEqual ( mixed $value ) : |
||
$value | mixed | The compared value. |
Результат | The created expression. |
public static isEmpty ( ) : |
||
Результат | The created expression. |
public static isInstanceOf ( string $className ) : |
||
$className | string | The class name. |
Результат | The created expression. |
public static keyNotExists ( string $keyName ) : |
||
$keyName | string | The key name. |
Результат | The created expression. |
public static lessThanEqual ( mixed $value ) : |
||
$value | mixed | The compared value. |
Результат | The created expression. |
public static not ( Webmozart\Expression\Expression $expr ) : Webmozart\Expression\Logic\Not | ||
$expr | Webmozart\Expression\Expression | The negated expression. |
Результат | Webmozart\Expression\Logic\Not | The created negation. |
public static notEmpty ( ) : Webmozart\Expression\Logic\Not | ||
Результат | Webmozart\Expression\Logic\Not | The created expression. |
public static notNull ( ) : |
||
Результат | The created expression. |
public static null ( ) : |
||
Результат | The created expression. |
public static startsWith ( string $prefix ) : |
||
$prefix | string | The prefix string. |
Результат | The created expression. |
public static true ( ) : |
||
Результат | The created expression. |