/** * Returns an singleton instance of this class */ public static function getInstance($mandrillApiKey) { if (self::$instance == null) { self::$instance = new EmailSenderManager($mandrillApiKey); } return self::$instance; }