diff --git a/CHANGELOG.md b/CHANGELOG.md index fd0d180..384bd03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ V0.6.0 (April 26, 2013) ----------------------- * Adding support for dynamic configuration of SDK (Upgrading sdk-core-php dependency to V1.4.0) - * Changing resource class methods to take an ApiContext argument instead of a OauthTokenCredential argument. + * Deprecating the setCredential method and changing resource class methods to take an ApiContext argument instead of a OauthTokenCredential argument. V0.5.0 (March 07, 2013) ----------------------- diff --git a/lib/PayPal/Api/CreditCard.php b/lib/PayPal/Api/CreditCard.php index 982f51f..7bcb55d 100644 --- a/lib/PayPal/Api/CreditCard.php +++ b/lib/PayPal/Api/CreditCard.php @@ -12,6 +12,10 @@ class CreditCard extends Resource implements IResource { private static $credential; + /** + * + * @deprected. Pass ApiContext to create/get methods instead + */ public static function setCredential($credential) { self::$credential = $credential; } diff --git a/lib/PayPal/Api/Payment.php b/lib/PayPal/Api/Payment.php index 7ea69ba..a2a674d 100644 --- a/lib/PayPal/Api/Payment.php +++ b/lib/PayPal/Api/Payment.php @@ -12,6 +12,10 @@ class Payment extends Resource implements IResource { private static $credential; + /** + * + * @deprected. Pass ApiContext to create/get methods instead + */ public static function setCredential($credential) { self::$credential = $credential; } diff --git a/lib/PayPal/Api/Refund.php b/lib/PayPal/Api/Refund.php index 592fe4e..ecff7b2 100644 --- a/lib/PayPal/Api/Refund.php +++ b/lib/PayPal/Api/Refund.php @@ -11,7 +11,11 @@ use PayPal\Rest\ApiContext; class Refund extends Resource implements IResource { private static $credential; - + + /** + * + * @deprected. Pass ApiContext to the get method instead + */ public static function setCredential($credential) { self::$credential = $credential; } diff --git a/lib/PayPal/Api/Sale.php b/lib/PayPal/Api/Sale.php index 4b431f4..394c8b7 100644 --- a/lib/PayPal/Api/Sale.php +++ b/lib/PayPal/Api/Sale.php @@ -12,6 +12,10 @@ class Sale extends Resource implements IResource { private static $credential; + /** + * + * @deprected. Pass ApiContext to refund/get methods instead + */ public static function setCredential($credential) { self::$credential = $credential; }