Pheasant\Query\Query::andWhere PHP Method

andWhere() public method

Adds an extra criteria to the where clause with an AND
public andWhere ( $sql = null, $params = [] )
    public function andWhere($sql = null, $params = array())
    {
        if (!isset($this->_where)) {
            $this->_where = new Criteria();
        }
        $this->_where->and(new Criteria($sql, $params));
        return $this;
    }