public function where($field, $value, $not = false)
    {
        $reserverd_word = $this->with_where ? 'AND' : 'WHERE';
        $operator = $not ? '!=' : '=';
        $this->query .= "{$reserverd_word} {$field} {$operator} '{$value}'";
        $this->with_where = true;

        return $this;
    }
public function where($field, $value, $not = false)
    {
        $reserverd_word = $this->with_where ? 'AND' : 'WHERE';
        $operator = $not ? '!=' : '=';
        $this->query .= "{$reserverd_word} {$field} {$operator} '{$value}'";
        $this->with_where = true;

        return $this;
    }
public function where ( $ field , $ value , $ not = false ) { $ reserverd_word = $ this -> with_where ? 'AND' : 'WHERE' ; $ operator = $ not ? '!=' : '=' ; $ this -> query .= "{$reserverd_word} {$field} {$operator} '{$value}'" ; $ this -> with_where = true ; return $ this ; }
Add a condition to the initial query
@param  string $field column name
@param  mixed  $value value to filter
@param  bool   $not   negation flag
@return CsvGenerator
Add a condition to the initial query