Pheasant\Query\Criteria::__call PHP Method

__call() public method

Triggers either the and() or or() methods
public __call ( $method, $params )
    public function __call($method, $params)
    {
        $method = strtoupper($method);
        if ($method != 'AND' && $method != 'OR') {
            throw new \BadMethodCallException("Unknown method {$method}");
        }
        if (!empty($this->_sql)) {
            $this->_sql = "({$this->_sql}) {$method} ";
        }
        $this->_sql .= implode(" {$method} ", $params);
        return $this;
    }