Exemplo n.º 1
0
 /**
  * Sets reminder data
  *
  * @param ReminderDataInterface $data
  * @return Reminder
  */
 public function setReminderData(ReminderDataInterface $data)
 {
     $this->setSubject($data->getSubject());
     $this->setExpireAt($data->getExpireAt());
     $this->setRecipient($data->getRecipient());
     if ($data instanceof SenderAwareReminderDataInterface) {
         $this->setSender($data->getSender());
     }
     return $this;
 }
Exemplo n.º 2
0
 /**
  * Sets reminder data
  *
  * @param ReminderDataInterface $data
  */
 public function setReminderData(ReminderDataInterface $data)
 {
     $this->setSubject($data->getSubject());
     $this->setExpireAt($data->getExpireAt());
     $this->setRecipient($data->getRecipient());
 }