@param $max

@return bool
173513
public function gc_session($max)
    {
        $old = time() - $max;
        $this->where('access', '<', $old)->trash();

        return true;
    }
297970
public function minMax($min, $max=PHP_INT_MAX){
        return $this->markErrorIf($this->value < $min || $this->value > $max);
    }
1242219
public function gc($maxLifetime)
    {
        try {
            return (bool) $this->db->from($this->table)
                    ->where($this->columns['expires'])->lt(time())
                    ->delete();
        } catch (PDOException $e) {
            return false;
        }
    }
1356664
public function setMinMax($min,$max=null)
    {
       $this->min = $min; 
       $this->max = $max; 
    }
1085585
public function setMax(string $max)
    {
        $this->doSetMax($max);
        $this->getTag()->setAttribute('max', $max);

        return $this;
    }
443792
public static function maxFilesize($input, $max) {
        if (static::file($input)) {
            $size = $input['size'];

        } else if (file_exists($input)) {
            $size = filesize($input);

        } else {
            return false;
        }

        return ($size <= Number::bytesFrom($max));
    }
226399
public function get_item_quantity($max = 0)
	{
		$max = (int) $max;
		$qty = count($this->get_items());
		if ($max === 0)
		{
			return $qty;
		}

		return ($qty > $max) ? $max : $qty;
	}
404325
public function max_files($name, $value, $max){
        if(! $this->not_empty($name, $value)){
            return TRUE;
        }
        if(count($value['name']) <= $max){
            return TRUE;
        }else{
            $this->add_message($name, 'max_files', array('max' => $max));
            return FALSE;
        }
    }
171385
public function max($key)
    {
        return $this->reduce(function($result, $item) use ($key)
        {
            return (is_null($result) || $item->{$key} > $result) ? $item->{$key} : $result;
        });
    }
614479
public function max($max) {
        $this->check_role = 'max';
        $this->p1 = $max;
        $result = $this->value <= $max;
        $this->checkResult($result);
        return $this;
    }
996673
public function setMax($max)
    {
        if (is_numeric($max) || Format::isVariableRef($max)) {
            $this->max = $max;
        } else {
            $msg = "'Max must be a numeric value or a variableRef, '" . gettype($max) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
414530
public function count($max = '') {
		$countKey = '0rpHeus_Count';
		$query = $this->getClone(false);
		
		$result = $query->set('what', 'COUNT(*) ' . $countKey)
			->from('(' . $this->getQuery() . ') oq')
			->asArray()->run();
		
		return isset($result[$countKey]) ? $result[$countKey] : 0;
	}
76993
public function setMax($max) : self
    {
        if (null === $max || (!is_float($max) && !is_int($max))) {
            throw new \InvalidArgumentException('max must be either a float or an integer.');
        }

        $this->max = $max;

        return $this;
    }
114394
public function setMaxFileSize(int $maxFileSize)
    {
        if ($maxFileSize > 0) {
            $properties = $this->getProperties();
            $properties['maxFileSize'] = $maxFileSize;
            $this->setProperties($properties);
            return $this;
        }
        return false;
    }
84834
public static function maxCount($value, int $maxCount): bool
    {
        if (!static::isCountable($value)) {
            return false;
        }

        return count($value) <= $maxCount;
    }
475057
protected function shouldWriteOutput($min=0, $max=null)
    {
        $out = $this->getOutput();
        if (!$out instanceof OutputInterface) {
            return false;
        }
        $v = $out->getVerbosity();

        return !($v<$min || ($max!==null && $v>$max));
    }
203691
public function setMax($max)
    {
        if (null === $max) {
            $this->_max = null;
        } else if ($max < $this->_min) {
            /**
             * @see Zend_Validate_Exception
             */
            include_once 'Zend/Validate/Exception.php';
            throw new Zend_Validate_Exception(
                "The maximum must be greater than or equal to the minimum length, but "
                . "$max < $this->_min"
            );
        } else {
            $this->_max = (integer) $max;
        }

        return $this;
    }