summaryrefslogtreecommitdiffstats
path: root/vendor/stripe/stripe-php/lib/Exception/InvalidRequestException.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2024-05-27 13:08:29 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2024-05-27 13:08:29 +0200
commit75160b12821f7f4299cce7f0b69c83c1502ae071 (patch)
tree27e25e4ccaef45f0c58b22831164050d1af1d4db /vendor/stripe/stripe-php/lib/Exception/InvalidRequestException.php
parentprvi-commit (diff)
download1ka-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 'vendor/stripe/stripe-php/lib/Exception/InvalidRequestException.php')
-rw-r--r--vendor/stripe/stripe-php/lib/Exception/InvalidRequestException.php120
1 files changed, 60 insertions, 60 deletions
diff --git a/vendor/stripe/stripe-php/lib/Exception/InvalidRequestException.php b/vendor/stripe/stripe-php/lib/Exception/InvalidRequestException.php
index ed4f8d0..46a52fc 100644
--- a/vendor/stripe/stripe-php/lib/Exception/InvalidRequestException.php
+++ b/vendor/stripe/stripe-php/lib/Exception/InvalidRequestException.php
@@ -1,60 +1,60 @@
-<?php
-
-namespace Stripe\Exception;
-
-/**
- * InvalidRequestException is thrown when a request is initiated with invalid
- * parameters.
- */
-class InvalidRequestException extends ApiErrorException
-{
- protected $stripeParam;
-
- /**
- * Creates a new InvalidRequestException 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 $stripeParam the parameter related to the error
- *
- * @return InvalidRequestException
- */
- public static function factory(
- $message,
- $httpStatus = null,
- $httpBody = null,
- $jsonBody = null,
- $httpHeaders = null,
- $stripeCode = null,
- $stripeParam = null
- ) {
- $instance = parent::factory($message, $httpStatus, $httpBody, $jsonBody, $httpHeaders, $stripeCode);
- $instance->setStripeParam($stripeParam);
-
- return $instance;
- }
-
- /**
- * 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;
+
+/**
+ * InvalidRequestException is thrown when a request is initiated with invalid
+ * parameters.
+ */
+class InvalidRequestException extends ApiErrorException
+{
+ protected $stripeParam;
+
+ /**
+ * Creates a new InvalidRequestException 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 $stripeParam the parameter related to the error
+ *
+ * @return InvalidRequestException
+ */
+ public static function factory(
+ $message,
+ $httpStatus = null,
+ $httpBody = null,
+ $jsonBody = null,
+ $httpHeaders = null,
+ $stripeCode = null,
+ $stripeParam = null
+ ) {
+ $instance = parent::factory($message, $httpStatus, $httpBody, $jsonBody, $httpHeaders, $stripeCode);
+ $instance->setStripeParam($stripeParam);
+
+ return $instance;
+ }
+
+ /**
+ * 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;
+ }
+}