src/Ranges.php
public static function intBetweenExclusive(int $minimum, int $maximum): \Closure
    {
        if ($maximum <= $minimum)
            throw new \InvalidArgumentException('Maximum can not be lesser than or equal to minimum.');
        
        return function ($value) use ($minimum, $maximum)
        {
            return Types::int()($value) && ($value > $minimum && $value < $maximum);
        };
	}
public static function intBetweenExclusive(int $minimum, int $maximum): \Closure
    {
        if ($maximum <= $minimum)
            throw new \InvalidArgumentException('Maximum can not be lesser than or equal to minimum.');
        
        return function ($value) use ($minimum, $maximum)
        {
            return Types::int()($value) && ($value > $minimum && $value < $maximum);
        };
	}
@param int $minimum
@param int $maximum

@return \Closure