public function setMin($min)
    {
        $min = (int) $min;

        if ($min < 0) {
            throw new \InvalidArgumentException('Error: Minimum cannot be smaller than zero');
        }
        if ($min > $this->max) {
            // We do not throw an exception but silently adjust the maximum.
            $this->max = $min;
        }

        $this->min = $min;
    }
public function setMin($min)
    {
        $min = (int) $min;

        if ($min < 0) {
            throw new \InvalidArgumentException('Error: Minimum cannot be smaller than zero');
        }
        if ($min > $this->max) {
            // We do not throw an exception but silently adjust the maximum.
            $this->max = $min;
        }

        $this->min = $min;
    }
public function setMin ( $ min ) { $ min = ( int ) $ min ; if ( $ min < 0 ) { throw new \ InvalidArgumentException ( 'Error: Minimum cannot be smaller than zero' ) ; } if ( $ min > $ this -> max ) { // We do not throw an exception but silently adjust the maximum. $ this -> max = $ min ; } $ this -> min = $ min ; }
Getter for min

@param int $min
Getter for min