From 3f75b403a1dd48bbc4009b4df03dcab639e15665 Mon Sep 17 00:00:00 2001 From: Ricardo Cerljenko Date: Tue, 5 Dec 2023 11:03:18 +0100 Subject: [PATCH] added exception handling --- src/Exception/UnsuccessfulResponse.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Exception/UnsuccessfulResponse.php b/src/Exception/UnsuccessfulResponse.php index 27b4c10..6e830a0 100644 --- a/src/Exception/UnsuccessfulResponse.php +++ b/src/Exception/UnsuccessfulResponse.php @@ -8,17 +8,17 @@ class UnsuccessfulResponse extends Exception implements OneSignalExceptionInterface { - protected array $request; + protected array $response; - public function __construct(array $request) + public function __construct(array $response) { - $this->request = $request; + $this->response = $response; parent::__construct(); } - public function getRequest(): array + public function getResponse(): array { - return $this->request; + return $this->response; } }