コード例 #1
0
ファイル: Year.php プロジェクト: brick/date-time
 /**
  * Combines this Year with a MonthDay to create a LocalDate.
  *
  * A month-day of February 29th will be adjusted to February 28th
  * in the resulting date if the year is not a leap year.
  *
  * @param MonthDay $monthDay The month-day to use.
  *
  * @return LocalDate
  */
 public function atMonthDay(MonthDay $monthDay)
 {
     return $monthDay->atYear($this->year);
 }