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