/** * {@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; }
/** * {@inheritdoc} */ public function getReminderData() { $result = new ReminderData(); $result->setSubject($this->getSubject()); $result->setExpireAt($this->getDueDate()); $result->setRecipient($this->getOwner()); return $result; }
/** * {@inheritdoc} */ public function getReminderData() { $result = new ReminderData(); $result->setSubject($this->getTitle()); $result->setExpireAt($this->getStart()); $result->setRecipient($this->getCalendar()->getOwner()); return $result; }