thirdparty/Zend/Validate/File/Count.php
public function setMin($min)
    {
        if (is_array($min) and isset($min['min'])) {
            $min = $min['min'];
        }

        if (!is_string($min) and !is_numeric($min)) {
            require_once 'Zend/Validate/Exception.php';
            throw new Zend_Validate_Exception ('Invalid options to validator provided');
        }

        $min = (integer) $min;
        if (($this->_max !== null) && ($min > $this->_max)) {
            require_once 'Zend/Validate/Exception.php';
            throw new Zend_Validate_Exception("The minimum must be less than or equal to the maximum file count, but $min >"
                                            . " {$this->_max}");
        }

        $this->_min = $min;
        return $this;
    }
public function setMin($min)
    {
        if (is_array($min) and isset($min['min'])) {
            $min = $min['min'];
        }

        if (!is_string($min) and !is_numeric($min)) {
            require_once 'Zend/Validate/Exception.php';
            throw new Zend_Validate_Exception ('Invalid options to validator provided');
        }

        $min = (integer) $min;
        if (($this->_max !== null) && ($min > $this->_max)) {
            require_once 'Zend/Validate/Exception.php';
            throw new Zend_Validate_Exception("The minimum must be less than or equal to the maximum file count, but $min >"
                                            . " {$this->_max}");
        }

        $this->_min = $min;
        return $this;
    }
public function setMin ( $ min ) { if ( is_array ( $ min ) and isset ( $ min [ 'min' ] ) ) { $ min = $ min [ 'min' ] ; } if ( ! is_string ( $ min ) and ! is_numeric ( $ min ) ) { require_once 'Zend/Validate/Exception.php' ; throw new Zend_Validate_Exception ( 'Invalid options to validator provided' ) ; } $ min = ( integer ) $ min ; if ( ( $ this -> _max !== null ) && ( $ min > $ this -> _max ) ) { require_once 'Zend/Validate/Exception.php' ; throw new Zend_Validate_Exception ( "The minimum must be less than or equal to the maximum file count, but $min >" . " {$this->_max}" ) ; } $ this -> _min = $ min ; return $ this ; }
Sets the minimum file count

@param  integer|array $min The minimum file count
@return Zend_Validate_File_Count Provides a fluent interface
@throws Zend_Validate_Exception When min is greater than max
Sets the minimum file count