Skip to content

Commit

Permalink
added exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
rcerljenko committed Dec 5, 2023
1 parent 9abc5e3 commit 3f75b40
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Exception/UnsuccessfulResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 3f75b40

Please sign in to comment.