public function whereBetween($column, $min, $max, bool $not = false, string $appendRule = 'AND'): self
    {
        $column = $this->checkStringValue('Argument $column', $column);
        $min = $this->checkScalarOrNullValue('The left between value', $min);
        $max = $this->checkScalarOrNullValue('The right between value', $max);

        $this->where[] = new BetweenCriterion($column, $min, $max, $not, $appendRule);
        return $this;
    }
public function whereBetween($column, $min, $max, bool $not = false, string $appendRule = 'AND'): self
    {
        $column = $this->checkStringValue('Argument $column', $column);
        $min = $this->checkScalarOrNullValue('The left between value', $min);
        $max = $this->checkScalarOrNullValue('The right between value', $max);

        $this->where[] = new BetweenCriterion($column, $min, $max, $not, $appendRule);
        return $this;
    }
public function whereBetween ( $ column , $ min , $ max , bool $ not = false , string $ appendRule = 'AND' ) : self { $ column = $ this -> checkStringValue ( 'Argument $column' , $ column ) ; $ min = $ this -> checkScalarOrNullValue ( 'The left between value' , $ min ) ; $ max = $ this -> checkScalarOrNullValue ( 'The right between value' , $ max ) ; $ this -> where [ ] = new BetweenCriterion ( $ column , $ min , $ max , $ not , $ appendRule ) ; return $ this ; }
Adds a BETWEEN criterion to the WHERE section.

@param string|\Closure|Query|StatementInterface $column Target column
@param mixed|\Closure|Query|StatementInterface $min Left value
@param mixed|\Closure|Query|StatementInterface $max Right value
@param bool $not Whether the rule should be NOT BETWEEN
@param string $appendRule How the criterion should be appended to the others (SQL boolean operator name)
@return $this
@throws InvalidArgumentException
@throws InvalidReturnValueException
Adds a BETWEEN criterion to the WHERE section .