src/Charcoal/Source/Filter.php
public function setConjunction($conjunction)
    {
        if (!is_string($conjunction)) {
            throw new InvalidArgumentException(
                'Conjunction should be a string.'
            );
        }

        $conjunction = strtoupper($conjunction);
        if (!in_array($conjunction, $this->validConjunctions())) {
            throw new InvalidArgumentException(sprintf(
                'Conjunction "%s" not allowed in this context.',
                $conjunction
            ));
        }

        $this->conjunction = $conjunction;
        return $this;
    }
public function setConjunction($conjunction)
    {
        if (!is_string($conjunction)) {
            throw new InvalidArgumentException(
                'Conjunction should be a string.'
            );
        }

        $conjunction = strtoupper($conjunction);
        if (!in_array($conjunction, $this->validConjunctions())) {
            throw new InvalidArgumentException(sprintf(
                'Conjunction "%s" not allowed in this context.',
                $conjunction
            ));
        }

        $this->conjunction = $conjunction;
        return $this;
    }
public function setConjunction ( $ conjunction ) { if ( ! is_string ( $ conjunction ) ) { throw new InvalidArgumentException ( 'Conjunction should be a string.' ) ; } $ conjunction = strtoupper ( $ conjunction ) ; if ( ! in_array ( $ conjunction , $ this -> validConjunctions ( ) ) ) { throw new InvalidArgumentException ( sprintf ( 'Conjunction "%s" not allowed in this context.' , $ conjunction ) ) ; } $ this -> conjunction = $ conjunction ; return $ this ; }
Set the conjunction for joining the conditions of this expression.

@param  string $conjunction The separator to use.
@throws InvalidArgumentException If the parameter is not a valid conjunction.
@return self
Set the conjunction for joining the conditions of this expression .