From 539742abfdc4c67345b6ae275bd89a3fd0c6f28d Mon Sep 17 00:00:00 2001 From: yaphet17 Date: Tue, 23 Aug 2022 02:02:46 +0300 Subject: [PATCH] Change success attr to status attr --- .gitignore | 1 - src/Model/ResponseData.php | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 636558d..f0bc173 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,4 @@ .vscode/ .idea/ vendor -index.php .phpunit.result.cache \ No newline at end of file diff --git a/src/Model/ResponseData.php b/src/Model/ResponseData.php index 23d28cd..182500f 100644 --- a/src/Model/ResponseData.php +++ b/src/Model/ResponseData.php @@ -13,7 +13,7 @@ class ResponseData private $statusCode; private $message; - private $success; + private $status; private $data; /** @@ -25,7 +25,7 @@ public function __construct($response, $statusCode) $this->statusCode = $statusCode; $this->message = $response->message; - $this->success = $response->status; + $this->status = $response->status; $this->data = $response->data; } @@ -38,9 +38,9 @@ public function getMessage() return $this->message; } - public function getSuccess() + public function getStatus() { - return $this->success; + return $this->status; } public function getData()