/** * {@inheritDoc} */ public function getUnsubscribed() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getUnsubscribed', array()); return parent::getUnsubscribed(); }
/** * @param DoNotEmail $doNotEmail */ public function removeDoNotEmailEntry(DoNotEmail $doNotEmail) { if ($doNotEmail->getBounced()) { $type = $doNotEmail->isManual() ? 'manual' : 'bounced'; } elseif ($doNotEmail->getUnsubscribed()) { $type = 'unsubscribed'; } $this->changes['dnc_status'] = array('removed', $type); $this->doNotEmail->removeElement($doNotEmail); }