Back to PhocacartEmailMail class

Method getInstance

public static
getInstance
(mixed $id = 'Joomla', mixed $exceptions = true)

Method getInstance - Source code

public static function getInstance($id = 'Joomla', $exceptions = true)
{
    if (empty(self::$instances[$id])) {
        self::$instances[$id] = new PhocacartEmailMail($exceptions);
    }
    return self::$instances[$id];
}