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.
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))));
 }