getMessage() public method

public getMessage ( ) : array
return array
示例#1
0
 /**
  * Get the message from MessageBuilder and apply custom/extra data
  *
  * @return array
  */
 public function getMessage()
 {
     $message = $this->messageBuilder->getMessage();
     if (!isset($message['from'])) {
         $this->setConfigFrom();
         $message = $this->messageBuilder->getMessage();
     }
     if ($this->variables) {
         $message['recipient-variables'] = json_encode($this->variables);
     }
     if (isset($this->{'o:native-send'})) {
         $message['o:native-send'] = $this->{'o:native-send'};
     }
     return $message;
 }
示例#2
0
 /**
  * @param $name
  * @return mixed
  */
 protected function getMessagePart($name)
 {
     $message = $this->messageBuilder->getMessage();
     return ArrayHelper::getValue($message, $name);
 }