protected function getVerifiedCount($count, $min = 1, $max = 100)
    {
        settype($count, "integer");
        settype($min, "integer");
        settype($max, "integer");

        // If $min is greater than $max,
        // use the smallest of the two ($max)
        if ($min > $max) $min = $max;

        if ($count < $min)
        {
            $count = $min;
        }
        elseif ($count > $max)
        {
            $count = $max;
        }

        return $count;
    }
protected function getVerifiedCount($count, $min = 1, $max = 100)
    {
        settype($count, "integer");
        settype($min, "integer");
        settype($max, "integer");

        // If $min is greater than $max,
        // use the smallest of the two ($max)
        if ($min > $max) $min = $max;

        if ($count < $min)
        {
            $count = $min;
        }
        elseif ($count > $max)
        {
            $count = $max;
        }

        return $count;
    }
protected function getVerifiedCount ( $ count , $ min = 1 , $ max = 100 ) { settype ( $ count , "integer" ) ; settype ( $ min , "integer" ) ; settype ( $ max , "integer" ) ; // If $min is greater than $max, // use the smallest of the two ($max) if ( $ min > $ max ) $ min = $ max ; if ( $ count < $ min ) { $ count = $ min ; } elseif ( $ count > $ max ) { $ count = $ max ; } return $ count ; }
Verify that the count parameter is in range

@param int $count
@param int $min
@param int $max

@return int
Verify that the count parameter is in range