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

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

        return new LocalDate($year, $month, $day);
    }
public static function of ( int $ year , int $ month , int $ day ) : LocalDate { Field \ Year :: check ( $ year ) ; Field \ MonthOfYear :: check ( $ month ) ; Field \ DayOfMonth :: check ( $ day , $ month , $ year ) ; return new LocalDate ( $ year , $ month , $ day ) ; }
Obtains an instance of `LocalDate` from a year, month and day.

@param int $year  The year, from MIN_YEAR to MAX_YEAR.
@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 LocalDate The LocalDate instance.

@throws DateTimeException If the date is not valid.
Obtains an instance of LocalDate from a year month and day .