private function between($method, $column, $a, $b, $filter)
    {
        if (!$this->queryBuilder->isFilterable($filter, array($a, $b))) {
            return $this;
        }

        if ($a instanceof RawSqlFragmentInterface) {
            $x = $a->getFragment();
        }

        if ($b instanceof RawSqlFragmentInterface) {
            $y = $b->getFragment();
        }

        // When doing betweens, unique placeholders come in handy
        if (!isset($x)) {
            $x = $this->getUniqPlaceholder();
        }

        if (!isset($y)) {
            $y = $this->getUniqPlaceholder();
        }

        // Prepare query string
        call_user_func(array($this->queryBuilder, $method), $column, $x, $y, $filter);

        // And finally bind values
        if (!($a instanceof RawSqlFragmentInterface)) {
            $this->bind($x, $a);
        }

        if (!($b instanceof RawSqlFragmentInterface)) {
            $this->bind($y, $b);
        }

        return $this;
    }
private function between($method, $column, $a, $b, $filter)
    {
        if (!$this->queryBuilder->isFilterable($filter, array($a, $b))) {
            return $this;
        }

        if ($a instanceof RawSqlFragmentInterface) {
            $x = $a->getFragment();
        }

        if ($b instanceof RawSqlFragmentInterface) {
            $y = $b->getFragment();
        }

        // When doing betweens, unique placeholders come in handy
        if (!isset($x)) {
            $x = $this->getUniqPlaceholder();
        }

        if (!isset($y)) {
            $y = $this->getUniqPlaceholder();
        }

        // Prepare query string
        call_user_func(array($this->queryBuilder, $method), $column, $x, $y, $filter);

        // And finally bind values
        if (!($a instanceof RawSqlFragmentInterface)) {
            $this->bind($x, $a);
        }

        if (!($b instanceof RawSqlFragmentInterface)) {
            $this->bind($y, $b);
        }

        return $this;
    }
private function between ( $ method , $ column , $ a , $ b , $ filter ) { if ( ! $ this -> queryBuilder -> isFilterable ( $ filter , array ( $ a , $ b ) ) ) { return $ this ; } if ( $ a instanceof RawSqlFragmentInterface ) { $ x = $ a -> getFragment ( ) ; } if ( $ b instanceof RawSqlFragmentInterface ) { $ y = $ b -> getFragment ( ) ; } // When doing betweens, unique placeholders come in handy if ( ! isset ( $ x ) ) { $ x = $ this -> getUniqPlaceholder ( ) ; } if ( ! isset ( $ y ) ) { $ y = $ this -> getUniqPlaceholder ( ) ; } // Prepare query string call_user_func ( array ( $ this -> queryBuilder , $ method ) , $ column , $ x , $ y , $ filter ) ; // And finally bind values if ( ! ( $ a instanceof RawSqlFragmentInterface ) ) { $ this -> bind ( $ x , $ a ) ; } if ( ! ( $ b instanceof RawSqlFragmentInterface ) ) { $ this -> bind ( $ y , $ b ) ; } return $ this ; }
Adds WHERE with BETWEEN operator

@param string $method Method to be called from query builder
@param string $column
@param string $a First value
@param string $b Second value
@param boolean $filter Whether to rely on filter
@return \Krystal\Db\Sql\Db
Adds WHERE with BETWEEN operator