Back to PhocacartEmailFactory class

Method getMailer

public static
getMailer
()

Method getMailer - Source code

public static function getMailer()
{
    if (!self::$mailer) {
        self::$mailer = PhocacartEmailFactory::createMailer();
    }
    $copy = clone self::$mailer;
    return $copy;
}