public function updateWithTransport($transport)
    {
        /** @noinspection PhpUndefinedMethodInspection */
        /** @noinspection PhpUndefinedMethodInspection */
        $this
            ->setSubject($transport->getMessage()->getSubject())
            ->setMessage($transport->getMessage())
            ->setRecipients($transport->getMessage()->getRecipients())
            ->setId(null);

        return $this;
    }
public function updateWithTransport($transport)
    {
        /** @noinspection PhpUndefinedMethodInspection */
        /** @noinspection PhpUndefinedMethodInspection */
        $this
            ->setSubject($transport->getMessage()->getSubject())
            ->setMessage($transport->getMessage())
            ->setRecipients($transport->getMessage()->getRecipients())
            ->setId(null);

        return $this;
    }
public function updateWithTransport ( $ transport ) { /** @noinspection PhpUndefinedMethodInspection */ /** @noinspection PhpUndefinedMethodInspection */ $ this -> setSubject ( $ transport -> getMessage ( ) -> getSubject ( ) ) -> setMessage ( $ transport -> getMessage ( ) ) -> setRecipients ( $ transport -> getMessage ( ) -> getRecipients ( ) ) -> setId ( null ) ; return $ this ; }
Update mail data with information created while transport init

@param \Shockwavemk\Mail\Base\Model\Transports\TransportInterface $transport
@return \Shockwavemk\Mail\Base\Model\Mail
Update mail data with information created while transport init