createElement('Notification'); $node->appendChild($document->createElement('NotificationCode', $this->getNotificationCode())); if ($this->getEmailMessage() !== null) { $node->appendChild($this->emailMessage->toNode($document)); } if ($this->getLocale() !== null) { $node->appendChild($this->locale->toNode($document)); } return $node; } /** * @return mixed */ public function getLocale() { return $this->locale; } /** * @param mixed $locale * * @return Notification */ public function setLocale($locale) { $this->locale = $locale; return $this; } /** * @return mixed */ public function getNotificationCode() { return $this->notificationCode; } /** * @param mixed $notificationCode */ public function setNotificationCode($notificationCode) { $this->notificationCode = $notificationCode; } /** * @return mixed */ public function getEmailMessage() { return $this->emailMessage; } /** * @param mixed $emailMessage */ public function setEmailMessage($emailMessage) { $this->emailMessage = $emailMessage; } }