src/Koldy/Db/Where.php
public function where($field, $valueOrOperator = null, $value = null)
    {
        if (is_string($field) && $valueOrOperator === null) {
            throw new \InvalidArgumentException('Invalid second argument; argument must not be null in case when first argument is string');
        }

        return $this->addCondition('AND', $field, ($value === null) ? $valueOrOperator : $value, ($value === null) ? '=' : $valueOrOperator);
    }
public function where($field, $valueOrOperator = null, $value = null)
    {
        if (is_string($field) && $valueOrOperator === null) {
            throw new \InvalidArgumentException('Invalid second argument; argument must not be null in case when first argument is string');
        }

        return $this->addCondition('AND', $field, ($value === null) ? $valueOrOperator : $value, ($value === null) ? '=' : $valueOrOperator);
    }
public function where ( $ field , $ valueOrOperator = null , $ value = null ) { if ( is_string ( $ field ) && $ valueOrOperator === null ) { throw new \ InvalidArgumentException ( 'Invalid second argument; argument must not be null in case when first argument is string' ) ; } return $ this -> addCondition ( 'AND' , $ field , ( $ value === null ) ? $ valueOrOperator : $ value , ( $ value === null ) ? '=' : $ valueOrOperator ) ; }
Add AND where statement

@param mixed $field
@param mixed $valueOrOperator
@param mixed $value

@return $this

@example where('id', 2) produces WHERE id = 2
@example where('id', '00385') produces WHERE id = '00385'
@example where('id', '>', 5) produces WHERE id > 5
@example where('id', '<=', '0100') produces WHERE id <= '0100'
Add AND where statement