Esempio n. 1
0
 /**
  * @param DoNotContact $doNotContact
  */
 public function removeDoNotContactEntry(DoNotContact $doNotContact)
 {
     $this->changes['dnc_channel_status'][$doNotContact->getChannel()] = ['reason' => DoNotContact::IS_CONTACTABLE, 'old_reason' => $doNotContact->getReason(), 'comments' => $doNotContact->getComments()];
     // @deprecated to be removed in 2.0
     $this->changes['dnc_status'] = ['removed', $doNotContact->getComments()];
     $this->doNotContact->removeElement($doNotContact);
 }
Esempio n. 2
0
 /**
  * @param DoNotContact $doNotContact
  *
  * @return $this
  */
 public function addDoNotContactEntry(DoNotContact $doNotContact)
 {
     $this->changes['dnc_status'] = array($doNotContact->getChannel(), $doNotContact->getComments());
     $this->doNotContact[] = $doNotContact;
     return $this;
 }