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; } }