src/Month.php
public static function of(int $value) : Month
    {
        Field\MonthOfYear::check($value);

        return Month::get($value);
    }
public static function of(int $value) : Month
    {
        Field\MonthOfYear::check($value);

        return Month::get($value);
    }
public static function of ( int $ value ) : Month { Field \ MonthOfYear :: check ( $ value ) ; return Month :: get ( $ value ) ; }
Returns an instance of Month for the given month value.

@param int $value The month number, from 1 (January) to 12 (December).

@return Month The Month instance.

@throws DateTimeException
Returns an instance of Month for the given month value .