Example #1
0
 /**
  * {@inheritdoc}
  */
 public function getReminderData()
 {
     if (!$this->getCalendar()) {
         throw new \LogicException(sprintf('Only user\'s calendar events can have reminders. Event Id: %d.', $this->id));
     }
     $result = new ReminderData();
     $result->setSubject($this->getTitle());
     $result->setExpireAt($this->getStart());
     $result->setRecipient($this->getCalendar()->getOwner());
     return $result;
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function getReminderData()
 {
     $result = new ReminderData();
     $result->setSubject($this->getSubject());
     $result->setExpireAt($this->getDueDate());
     $result->setRecipient($this->getOwner());
     return $result;
 }
Example #3
0
 /**
  * {@inheritdoc}
  */
 public function getReminderData()
 {
     $result = new ReminderData();
     $result->setSubject($this->getTitle());
     $result->setExpireAt($this->getStart());
     $result->setRecipient($this->getCalendar()->getOwner());
     return $result;
 }