PHP Class Webmozart\Expression\Logic\OrX

A disjunction is a set of {@link Expression} instances connected by logical "or" operators.
Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: implements Webmozart\Expression\Expression
显示文件 Open project: webmozart/expression Class Usage Examples

Public Methods

Method Description
__construct ( array $disjuncts = [] ) Creates a disjunction of the given expressions.
__toString ( )
equivalentTo ( Webmozart\Expression\Expression $other )
evaluate ( $values )
getDisjuncts ( ) : Webmozart\Expression\Expression[] Returns the disjuncts of the disjunction.
orAll ( Webmozart\Expression\Expression $expr )
orAtLeast ( $count, Webmozart\Expression\Expression $expr )
orAtMost ( $count, Webmozart\Expression\Expression $expr )
orContains ( $string )
orCount ( Webmozart\Expression\Expression $expr )
orEmpty ( )
orEndsWith ( $suffix )
orEquals ( $value )
orExactly ( $count, Webmozart\Expression\Expression $expr )
orFalse ( )
orGreaterThan ( $value )
orGreaterThanEqual ( $value )
orIn ( array $values )
orInstanceOf ( $className )
orKey ( $keyName, Webmozart\Expression\Expression $expr )
orKeyExists ( $keyName )
orKeyNotExists ( $keyName )
orLessThan ( $value )
orLessThanEqual ( $value )
orMatches ( $regExp )
orMethod ( $methodName, $args )
orNot ( Webmozart\Expression\Expression $expr )
orNotEmpty ( )
orNotEquals ( $value )
orNotNull ( )
orNotSame ( $value )
orNull ( )
orProperty ( $propertyName, Webmozart\Expression\Expression $expr )
orSame ( $value )
orStartsWith ( $prefix )
orTrue ( )
orX ( Webmozart\Expression\Expression $expr )
toString ( )

Method Details

__construct() public method

Creates a disjunction of the given expressions.
public __construct ( array $disjuncts = [] )
$disjuncts array The disjuncts.

__toString() public method

public __toString ( )

equivalentTo() public method

public equivalentTo ( Webmozart\Expression\Expression $other )
$other Webmozart\Expression\Expression

evaluate() public method

public evaluate ( $values )

getDisjuncts() public method

Returns the disjuncts of the disjunction.
public getDisjuncts ( ) : Webmozart\Expression\Expression[]
return Webmozart\Expression\Expression[] The disjuncts.

orAll() public method

public orAll ( Webmozart\Expression\Expression $expr )
$expr Webmozart\Expression\Expression

orAtLeast() public method

public orAtLeast ( $count, Webmozart\Expression\Expression $expr )
$expr Webmozart\Expression\Expression

orAtMost() public method

public orAtMost ( $count, Webmozart\Expression\Expression $expr )
$expr Webmozart\Expression\Expression

orContains() public method

public orContains ( $string )

orCount() public method

public orCount ( Webmozart\Expression\Expression $expr )
$expr Webmozart\Expression\Expression

orEmpty() public method

public orEmpty ( )

orEndsWith() public method

public orEndsWith ( $suffix )

orEquals() public method

public orEquals ( $value )

orExactly() public method

public orExactly ( $count, Webmozart\Expression\Expression $expr )
$expr Webmozart\Expression\Expression

orFalse() public method

public orFalse ( )

orGreaterThan() public method

public orGreaterThan ( $value )

orGreaterThanEqual() public method

public orGreaterThanEqual ( $value )

orIn() public method

public orIn ( array $values )
$values array

orInstanceOf() public method

public orInstanceOf ( $className )

orKey() public method

public orKey ( $keyName, Webmozart\Expression\Expression $expr )
$expr Webmozart\Expression\Expression

orKeyExists() public method

public orKeyExists ( $keyName )

orKeyNotExists() public method

public orKeyNotExists ( $keyName )

orLessThan() public method

public orLessThan ( $value )

orLessThanEqual() public method

public orLessThanEqual ( $value )

orMatches() public method

public orMatches ( $regExp )

orMethod() public method

public orMethod ( $methodName, $args )

orNot() public method

public orNot ( Webmozart\Expression\Expression $expr )
$expr Webmozart\Expression\Expression

orNotEmpty() public method

public orNotEmpty ( )

orNotEquals() public method

public orNotEquals ( $value )

orNotNull() public method

public orNotNull ( )

orNotSame() public method

public orNotSame ( $value )

orNull() public method

public orNull ( )

orProperty() public method

public orProperty ( $propertyName, Webmozart\Expression\Expression $expr )
$expr Webmozart\Expression\Expression

orSame() public method

public orSame ( $value )

orStartsWith() public method

public orStartsWith ( $prefix )

orTrue() public method

public orTrue ( )

orX() public method

public orX ( Webmozart\Expression\Expression $expr )
$expr Webmozart\Expression\Expression

toString() public method

public toString ( )