/** * I AM SINGLETON * We don't need to go instantiating all these objects more than once here * @return Instaphp */ public static function Instance($token = null) { if (self::$instance == null || !empty($token)) { self::$instance = new self($token); } return self::$instance; }
/** * I AM SINGLETON * We don't need to go instantiating all these objects more than once here * @return Instaphp */ public static function Instance($token = null, $config = array()) { if (self::$instance == null || !empty($token)) { self::$instance = new self($token, $config); } return self::$instance; }