private function updateMessageTemplate( $template, $key ) {    
        //invalide message key
        if( !key_exists( $messageKey, $this->templates ) && $key != self::DEFAULT_KEY )
            throw new Exception\MessageTemplateDoesNotExist( "A message template does not exist for key $messageKey" );

        $this->templates[$key] = $template;
    }
private function updateMessageTemplate( $template, $key ) {    
        //invalide message key
        if( !key_exists( $messageKey, $this->templates ) && $key != self::DEFAULT_KEY )
            throw new Exception\MessageTemplateDoesNotExist( "A message template does not exist for key $messageKey" );

        $this->templates[$key] = $template;
    }
private function updateMessageTemplate ( $ template , $ key ) { //invalide message key
 if ( ! key_exists ( $ messageKey , $ this -> templates ) && $ key != self :: DEFAULT_KEY ) throw new Exception \ MessageTemplateDoesNotExist ( "A message template does not exist for key $messageKey" ) ; $ this -> templates [ $ key ] = $ template ; }
Updates the message template. This overrides existing message templates.
@param $template The message template.
@param $key The message key.
Updates the message template . This overrides existing message templates .