/** * Returns a singleton instance of InstaPush * @param $appId Instapush Applciation Id. * @param $appSecret Instapush Application Secret. * @return InstaPush */ public static function getInstance($appId, $appSecret, $options = array()) { if (!isset(self::$_instance)) { self::$_instance = new InstaPush($appId, $appSecret, $options); } return self::$_instance; }