예제 #1
0
 /**
  * Update mail data with information created while transport init
  *
  * @param \Shockwavemk\Mail\Base\Model\Transports\TransportInterface $transport
  * @return \Shockwavemk\Mail\Base\Model\Mail
  */
 public function updateWithTransport($transport)
 {
     /** @noinspection PhpUndefinedMethodInspection */
     /** @noinspection PhpUndefinedMethodInspection */
     $this->setSubject($transport->getMessage()->getSubject())->setMessage($transport->getMessage())->setRecipients($transport->getMessage()->getRecipients())->setId(null);
     return $this;
 }
예제 #2
0
 /**
  * Get message associated with this transport
  *
  * @return \Shockwavemk\Mail\Base\Model\Mail\MessageInterface
  */
 public function getMessage()
 {
     return $this->_transport->getMessage();
 }