src/MonthDay.php
public static function of(int $month, int $day) : MonthDay
    {
        Field\MonthOfYear::check($month);
        Field\DayOfMonth::check($day, $month);

        return new MonthDay($month, $day);
    }
public static function of(int $month, int $day) : MonthDay
    {
        Field\MonthOfYear::check($month);
        Field\DayOfMonth::check($day, $month);

        return new MonthDay($month, $day);
    }
public static function of ( int $ month , int $ day ) : MonthDay { Field \ MonthOfYear :: check ( $ month ) ; Field \ DayOfMonth :: check ( $ day , $ month ) ; return new MonthDay ( $ month , $ day ) ; }
Obtains an instance of MonthDay.

@param int $month The month-of-year, from 1 (January) to 12 (December).
@param int $day   The day-of-month, from 1 to 31.

@return MonthDay

@throws DateTimeException If the month-day is not valid.
Obtains an instance of MonthDay .