public static function limit($number, $min, $max): int
    {
        return self::max(self::min($number, $min), $max);
    }
public static function limit($number, $min, $max): int
    {
        return self::max(self::min($number, $min), $max);
    }
public static function limit ( $ number , $ min , $ max ) : int { return self :: max ( self :: min ( $ number , $ min ) , $ max ) ; }
Limits the number between two bounds.

@param int $number
@param int $min
@param int $max
@return int
Limits the number between two bounds .