protected function getSwiftMessage(MessageContract $message)
    {
        $swiftMessage = $message->_swiftMessage();
        if (!$swiftMessage instanceof Swift_Message) {
            throw new UnexpectedValueException('Swift\Transport can only send messages with swift messages');
        }

        return $swiftMessage;
    }
protected function getSwiftMessage(MessageContract $message)
    {
        $swiftMessage = $message->_swiftMessage();
        if (!$swiftMessage instanceof Swift_Message) {
            throw new UnexpectedValueException('Swift\Transport can only send messages with swift messages');
        }

        return $swiftMessage;
    }
protected function getSwiftMessage ( MessageContract $ message ) { $ swiftMessage = $ message -> _swiftMessage ( ) ; if ( ! $ swiftMessage instanceof Swift_Message ) { throw new UnexpectedValueException ( 'Swift\Transport can only send messages with swift messages' ) ; } return $ swiftMessage ; }
Get the swift message out of an message.

@param \Ems\Contracts\Mail\Message $message

@return \Swift_Message
Get the swift message out of an message .