public function orIf($master = null)
    {
        if ($this->logicalOperator == "and") {
            throw new Exception("ValidationLogicCriteria: Cannot declare a logical operator more than once. (Specified orIf() after calling andIf()). Use a nested ValidationLogicCriteriaSet to combine conjunctive and disjuctive logic.");
        }
        if ($master) {
            $this->master = $master;
        }
        $this->logicalOperator = "or";
        return $this;
    }
public function orIf($master = null)
    {
        if ($this->logicalOperator == "and") {
            throw new Exception("ValidationLogicCriteria: Cannot declare a logical operator more than once. (Specified orIf() after calling andIf()). Use a nested ValidationLogicCriteriaSet to combine conjunctive and disjuctive logic.");
        }
        if ($master) {
            $this->master = $master;
        }
        $this->logicalOperator = "or";
        return $this;
    }
public function orIf ( $ master = null ) { if ( $ this -> logicalOperator == "and" ) { throw new Exception ( "ValidationLogicCriteria: Cannot declare a logical operator more than once. (Specified orIf() after calling andIf()). Use a nested ValidationLogicCriteriaSet to combine conjunctive and disjuctive logic." ) ; } if ( $ master ) { $ this -> master = $ master ; } $ this -> logicalOperator = "or" ; return $ this ; }
Adds a new criterion, and makes this set use disjunctive logic

@param string $master The master form field
@return ValidationLogicCriteria
Adds a new criterion and makes this set use disjunctive logic