Validates that the number of checked checkboxes in a group is within a certain range.

@param int $min_count
@param int $max_count

@return $this
348478
public function validateRangeCheckboxesChecked($min_count, $max_count)
    {
        $this->validator_attributes[] = 'data-parsley-check="[' . (int)$min_count . ', ' . (int)$max_count . ']"';

        $this->validator_checks['min_checkboxes_checked'] = (int)$min_count;
        $this->validator_checks['max_checkboxes_checked'] = (int)$max_count;

        return $this;
    }
239601
public static function bound($number, $min = 0, $max = PHP_INT_MAX)
    {
        $number = (int)$number;
        $min = (int)$min;
        $max = (int)$max;

        return min(max($number, $min), $max);
    }
805987
public function range($min, $max, $comment = "")
	{
		if ($this->isValid)
		{
			if ($this->val < $min || $this->val > $max)
				self::addMessage($comment);
		}
		return $this;
	}
1125063
public static function minCount($value, int $minCount): bool
    {
        if (!static::isCountable($value)) {
            return false;
        }

        return count($value) >= $minCount;
    }
818260
public function setMin($min)
    {
        if (!is_string($min) and !is_numeric($min)) {

            throw new Zend_Validate_Exception ('Invalid options to validator provided');
        }

        $min = (integer) $this->_fromByteString($min);
        $max = $this->getMax(true);
        if (($max !== null) && ($min > $max)) {

            throw new Zend_Validate_Exception("The minimum must be less than or equal to the maximum filesize, but $min >"
                                            . " $max");
        }

        $this->_min = $min;
        return $this;
    }
560090
public function setMin($min)
    {
        if (null !== $this->_max && $min > $this->_max) {
            /**
             * @see Zend_Validate_Exception
             */
            include_once 'Zend/Validate/Exception.php';
            throw new Zend_Validate_Exception(
                "The minimum must be less than or equal to the maximum length, but $min >"
                . " $this->_max"
            );
        }
        $this->_min = max(0, (integer) $min);
        return $this;
    }
300041
public function limit($count, $offset = 0)
    {
        $this->limit = array((int) $count, (int) $offset);

        return $this;
    }
100812
public function setColumnWidthLimits($minWidth = null, $maxWidth = null)
    {
        $this->sheet->setColumnWidthLimits($minWidth, $maxWidth);
    }
710293
public function havingNotBetween(string $column, int $min, int $max)
    {
        $this->hConditions()->notBetween(...func_get_args());

        return $this;
    }
1070414
public function whereBetween($attribute, $min, $max)
    {
        $this->data->must()->range($attribute, [
            RangeQuery::GTE => $min,
            RangeQuery::LTE => $max,
        ]);

        return $this;
    }
786802
public function whereBetween(string $column, int $min, int $max)
    {
        $this->wConditions()->between(...func_get_args());

        return $this;
    }
624194
public function decrementPosition($count = 1)
    {
        if ($this->isNotInList()) return $this;

        $newPosition = $this->getListifyPosition() - $count;

        if ($newPosition < $this->listifyTop()) {
            $newPosition = $this->listifyTop();
        }

        $this->setListifyPosition($newPosition);

        return $this;
    }
270928
public function setRange($min, $max)
    {
        $this->setMin($min);
        $this->setMax($max);
        
        return $this;
    }
901663
public function countMax($countMax, $error) {
        if ($this->_exist) {
            array_push($this->_constraints, ['type' => self::COUNTMAX, 'value' => $countMax, 'message' => $error]);
        }

        return $this;
    }
406379
public long count(double minX, double minY, double maxX, double maxY) {
		validateRTree();
		String where = buildWhere(minX, minY, maxX, maxY);
		String[] whereArgs = buildWhereArgs(minX, minY, maxX, maxY);
		return count(where, whereArgs);
	}
96291
function SetIDRange ( $min, $max )
    {
        assert ( is_numeric($min) );
        assert ( is_numeric($max) );
        assert ( $min<=$max );
        $this->_min_id = $min;
        $this->_max_id = $max;
    }
1016598
public function matchQuantity($min, $max = null)
	{
		$match = '{'.$min;

		if ($max !== null)
		{
			$match .= ',' . $max;
		}

		$match .= '}';

		$this->value($match);

		return $this;
	}