diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2024-05-27 13:08:29 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2024-05-27 13:08:29 +0200 |
commit | 75160b12821f7f4299cce7f0b69c83c1502ae071 (patch) | |
tree | 27e25e4ccaef45f0c58b22831164050d1af1d4db /vendor/stripe/stripe-php/lib/Exception/CardException.php | |
parent | prvi-commit (diff) | |
download | 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.gz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.bz2 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.lz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.xz 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.zst 1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.zip |
Diffstat (limited to '')
-rw-r--r-- | vendor/stripe/stripe-php/lib/Exception/CardException.php | 168 |
1 files changed, 84 insertions, 84 deletions
diff --git a/vendor/stripe/stripe-php/lib/Exception/CardException.php b/vendor/stripe/stripe-php/lib/Exception/CardException.php index 43df9c7..a459092 100644 --- a/vendor/stripe/stripe-php/lib/Exception/CardException.php +++ b/vendor/stripe/stripe-php/lib/Exception/CardException.php @@ -1,84 +1,84 @@ -<?php - -namespace Stripe\Exception; - -/** - * CardException is thrown when a user enters a card that can't be charged for - * some reason. - */ -class CardException extends ApiErrorException -{ - protected $declineCode; - protected $stripeParam; - - /** - * Creates a new CardException exception. - * - * @param string $message the exception message - * @param null|int $httpStatus the HTTP status code - * @param null|string $httpBody the HTTP body as a string - * @param null|array $jsonBody the JSON deserialized body - * @param null|array|\Stripe\Util\CaseInsensitiveArray $httpHeaders the HTTP headers array - * @param null|string $stripeCode the Stripe error code - * @param null|string $declineCode the decline code - * @param null|string $stripeParam the parameter related to the error - * - * @return CardException - */ - public static function factory( - $message, - $httpStatus = null, - $httpBody = null, - $jsonBody = null, - $httpHeaders = null, - $stripeCode = null, - $declineCode = null, - $stripeParam = null - ) { - $instance = parent::factory($message, $httpStatus, $httpBody, $jsonBody, $httpHeaders, $stripeCode); - $instance->setDeclineCode($declineCode); - $instance->setStripeParam($stripeParam); - - return $instance; - } - - /** - * Gets the decline code. - * - * @return null|string - */ - public function getDeclineCode() - { - return $this->declineCode; - } - - /** - * Sets the decline code. - * - * @param null|string $declineCode - */ - public function setDeclineCode($declineCode) - { - $this->declineCode = $declineCode; - } - - /** - * Gets the parameter related to the error. - * - * @return null|string - */ - public function getStripeParam() - { - return $this->stripeParam; - } - - /** - * Sets the parameter related to the error. - * - * @param null|string $stripeParam - */ - public function setStripeParam($stripeParam) - { - $this->stripeParam = $stripeParam; - } -} +<?php
+
+namespace Stripe\Exception;
+
+/**
+ * CardException is thrown when a user enters a card that can't be charged for
+ * some reason.
+ */
+class CardException extends ApiErrorException
+{
+ protected $declineCode;
+ protected $stripeParam;
+
+ /**
+ * Creates a new CardException exception.
+ *
+ * @param string $message the exception message
+ * @param null|int $httpStatus the HTTP status code
+ * @param null|string $httpBody the HTTP body as a string
+ * @param null|array $jsonBody the JSON deserialized body
+ * @param null|array|\Stripe\Util\CaseInsensitiveArray $httpHeaders the HTTP headers array
+ * @param null|string $stripeCode the Stripe error code
+ * @param null|string $declineCode the decline code
+ * @param null|string $stripeParam the parameter related to the error
+ *
+ * @return CardException
+ */
+ public static function factory(
+ $message,
+ $httpStatus = null,
+ $httpBody = null,
+ $jsonBody = null,
+ $httpHeaders = null,
+ $stripeCode = null,
+ $declineCode = null,
+ $stripeParam = null
+ ) {
+ $instance = parent::factory($message, $httpStatus, $httpBody, $jsonBody, $httpHeaders, $stripeCode);
+ $instance->setDeclineCode($declineCode);
+ $instance->setStripeParam($stripeParam);
+
+ return $instance;
+ }
+
+ /**
+ * Gets the decline code.
+ *
+ * @return null|string
+ */
+ public function getDeclineCode()
+ {
+ return $this->declineCode;
+ }
+
+ /**
+ * Sets the decline code.
+ *
+ * @param null|string $declineCode
+ */
+ public function setDeclineCode($declineCode)
+ {
+ $this->declineCode = $declineCode;
+ }
+
+ /**
+ * Gets the parameter related to the error.
+ *
+ * @return null|string
+ */
+ public function getStripeParam()
+ {
+ return $this->stripeParam;
+ }
+
+ /**
+ * Sets the parameter related to the error.
+ *
+ * @param null|string $stripeParam
+ */
+ public function setStripeParam($stripeParam)
+ {
+ $this->stripeParam = $stripeParam;
+ }
+}
|