protected function createMessageInstance()
    {
        $hasSigner = $this->signer->hasSigner();
        $class     = $hasSigner ? '\Swift_SignedMessage' : '\Swift_Message';

        $message = new $class();

        if ($hasSigner) {
            $message->attachSigner($this->signer->createSigner());
        }

        return $message;
    }
protected function createMessageInstance()
    {
        $hasSigner = $this->signer->hasSigner();
        $class     = $hasSigner ? '\Swift_SignedMessage' : '\Swift_Message';

        $message = new $class();

        if ($hasSigner) {
            $message->attachSigner($this->signer->createSigner());
        }

        return $message;
    }
protected function createMessageInstance ( ) { $ hasSigner = $ this -> signer -> hasSigner ( ) ; $ class = $ hasSigner ? '\Swift_SignedMessage' : '\Swift_Message' ; $ message = new $ class ( ) ; if ( $ hasSigner ) { $ message -> attachSigner ( $ this -> signer -> createSigner ( ) ) ; } return $ message ; }
Create Swiftf message instance

@return \Swift_Message
Create Swiftf message instance