예제 #1
0
 /**
  * Converts the google object to model
  *
  * @param \Google_Service_Calendar_EventReminder $reminderItem
  * @param \KevinDitscheid\KdCalendar\Domain\Model\Reminder $reminder
  *
  * @return \KevinDitscheid\KdCalendar\Domain\Model\Reminder
  */
 public static function convert($reminderItem, $reminder = NULL)
 {
     if ($reminder === NULL) {
         $reminder = new \KevinDitscheid\KdCalendar\Domain\Model\Reminder();
     }
     $reminder->setMethod($reminderItem->getMethod());
     $reminder->setMinutes($reminderItem->getMinutes());
     return $reminder;
 }