Webmozart\Expression\Expr::orX PHP Method

orX() public static method

Create a disjunction.
public static orX ( array $disjuncts ) : OrX
$disjuncts array The disjuncts.
return Webmozart\Expression\Logic\OrX The created disjunction.
    public static function orX(array $disjuncts)
    {
        return new OrX($disjuncts);
    }

Usage Example

Exemplo n.º 1
0
 public function testOrX()
 {
     $andX = new OrX(array(new LessThan(5), new GreaterThan(10)));
     $this->assertEquals($andX, Expr::orX(array(Expr::lessThan(5), Expr::greaterThan(10))));
 }