public function renderSubject($template, array $variables = [], $type = MailTypes::TYPE_ALL)
    {
        return $this->getMailRendered($template, $variables, $type)->getSubject();
    }
public function renderSubject($template, array $variables = [], $type = MailTypes::TYPE_ALL)
    {
        return $this->getMailRendered($template, $variables, $type)->getSubject();
    }
public function renderSubject ( $ template , array $ variables = [ ] , $ type = MailTypes :: TYPE_ALL ) { return $ this -> getMailRendered ( $ template , $ variables , $ type ) -> getSubject ( ) ; }
Render the subject of mail template.

@param string $template  The mail template name
@param array  $variables The variables of template
@param string $type      The mail type defined in MailTypes::TYPE_*

@return string
Render the subject of mail template .