public function setConditionMode(string $conditionMode)
    {
        if (!in_array($conditionMode, [self::CONDITION_MODE_AND, self::CONDITION_MODE_OR], true)) {
            throw Exception\InvalidArgumentException::format(
                'Invalid condition mode supplied to %s: expecting one of (%s), \'%s\' given',
                __METHOD__, Debug::formatValues([self::CONDITION_MODE_AND, self::CONDITION_MODE_OR]), $conditionMode
            );
        }

        $this->conditionMode = $conditionMode;

        return $this;
    }
public function setConditionMode(string $conditionMode)
    {
        if (!in_array($conditionMode, [self::CONDITION_MODE_AND, self::CONDITION_MODE_OR], true)) {
            throw Exception\InvalidArgumentException::format(
                'Invalid condition mode supplied to %s: expecting one of (%s), \'%s\' given',
                __METHOD__, Debug::formatValues([self::CONDITION_MODE_AND, self::CONDITION_MODE_OR]), $conditionMode
            );
        }

        $this->conditionMode = $conditionMode;

        return $this;
    }
public function setConditionMode ( string $ conditionMode ) { if ( ! in_array ( $ conditionMode , [ self :: CONDITION_MODE_AND , self :: CONDITION_MODE_OR ] , true ) ) { throw Exception \ InvalidArgumentException :: format ( 'Invalid condition mode supplied to %s: expecting one of (%s), \'%s\' given' , __METHOD__ , Debug :: formatValues ( [ self :: CONDITION_MODE_AND , self :: CONDITION_MODE_OR ] ) , $ conditionMode ) ; } $ this -> conditionMode = $ conditionMode ; return $ this ; }
Sets the condition mode of the criteria.

@param string $conditionMode

@return static
@throws Exception\InvalidArgumentException
Sets the condition mode of the criteria .