Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* Updated phpdoc

* Marked getAvailableMethods() as @deprecated
  • Loading branch information...
commit 6ecf8b6fdc471ddd9d75f7550b5caf4dc746de0b 1 parent b62cdd8
Boris Guéry authored
Showing with 17 additions and 6 deletions.
  1. +17 −6 library/Bgy/Service/Geonames.php
23 library/Bgy/Service/Geonames.php
View
@@ -1,6 +1,6 @@
<?php
/**
- * @category Zend
+ * @category Bgy
* @package Bgy_Service
* @subpackage Geonames
* @version $Id: Geonames.php 0 2010-11-18 15:35:11Z borisguery $
@@ -254,7 +254,7 @@ public function __construct($options = null)
* Set username
*
* @param string $username
- * @return Zend_Service_Geonames Provides a fluent interface
+ * @return Bgy_Service_Geonames Provides a fluent interface
*/
public function setUsername($username)
{
@@ -278,7 +278,7 @@ public function getUsername()
* Set token
*
* @param string $token
- * @return Zend_Service_Geonames Provides a fluent interface
+ * @return Bgy_Service_Geonames Provides a fluent interface
*/
public function setToken($token)
{
@@ -300,11 +300,22 @@ public function getToken()
/**
* Retrieve all the supported methods
*
- * @return array Available methods
+ * @deprecated Proxy to getSupportedMethods
+ * @return array Supported methods
*/
public static function getAvailableMethods()
{
- return array_keys(self::$_availableMethods);
+ return self::getSupportedMethods();
+ }
+
+ /**
+ * Retrieve all the supported methods
+ *
+ * @return array Supported methods
+ */
+ public static function getSupportedMethods()
+ {
+ return array_keys(self::$_supportedMethods);
}
/**
@@ -312,7 +323,7 @@ public static function getAvailableMethods()
*
* @param string $method The webservice method
* @param array $params The parameters
- * @throws Zend_Service_Geonames_Exception
+ * @throws Bgy_Service_Geonames_Exception
* @return array
*/
public function __call($method, $params = array())
Please sign in to comment.
Something went wrong with that request. Please try again.