/**
  * @param RepeatedDrivingAssertionPlan $assertionPlan
  * @param RepeatedDrivingAssertionRegisterDTO $dto
  * @return RepeatedDrivingAssertionPlan
  */
 public function repeatedRegisterDTOToDrivingAssertionPlan(RepeatedDrivingAssertionPlan $assertionPlan, RepeatedDrivingAssertionRegisterDTO $dto)
 {
     $endingDate = null !== $dto->endDate ? $dto->endDate : DateTimeService::getMaxDateTime();
     $assertionPlan->setSubject($dto->subject);
     $assertionPlan->setMemo($dto->memo);
     $assertionPlan->setAnchorDate($dto->anchorDate);
     $assertionPlan->setEndingDate($endingDate);
     $assertionPlan->setFrequency($dto->frequency);
     $assertionPlan->setWithHolidays($dto->withHolidays);
     return $assertionPlan;
 }
 /**
  * @param string $subject
  * @param \DateTime $anchorDate
  * @param string $frequency
  * @param boolean $withHolidays
  * @param \DateTime $endingDate
  * @param string $memo
  * @return RepeatedDrivingAssertionPlan
  */
 public static function registerRepeatedAssertionPlan($subject, \DateTime $anchorDate, $frequency, $withHolidays, \DateTime $endingDate = null, $memo = null)
 {
     $endingDate = null !== $endingDate ? $endingDate : DateTimeService::getMaxDateTime();
     $assertion = new RepeatedDrivingAssertionPlan();
     $assertion->setSubject($subject);
     $assertion->setMemo($memo);
     $assertion->setAnchorDate($anchorDate);
     $assertion->setEndingDate($endingDate);
     $assertion->setFrequency($frequency);
     $assertion->setWithHolidays($withHolidays);
     return $assertion;
 }