protected function getCacheId($template, array $variables = [], $type = MailTypes::TYPE_ALL)
    {
        $serialize = serialize($variables);

        return sha1($template.'&&'.$serialize.'&&'.$type);
    }
protected function getCacheId($template, array $variables = [], $type = MailTypes::TYPE_ALL)
    {
        $serialize = serialize($variables);

        return sha1($template.'&&'.$serialize.'&&'.$type);
    }
protected function getCacheId ( $ template , array $ variables = [ ] , $ type = MailTypes :: TYPE_ALL ) { $ serialize = serialize ( $ variables ) ; return sha1 ( $ template . '&&' . $ serialize . '&&' . $ type ) ; }
Get the id for the cache.

@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
Get the id for the cache .