/** * 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; }
/** * Get message associated with this transport * * @return \Shockwavemk\Mail\Base\Model\Mail\MessageInterface */ public function getMessage() { return $this->_transport->getMessage(); }