Skip to content

Commit

Permalink
Change success attr to status attr
Browse files Browse the repository at this point in the history
  • Loading branch information
yaphet17 committed Aug 22, 2022
1 parent 8f0b51d commit 539742a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
.vscode/
.idea/
vendor
index.php
.phpunit.result.cache
8 changes: 4 additions & 4 deletions src/Model/ResponseData.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ResponseData

private $statusCode;
private $message;
private $success;
private $status;
private $data;

/**
Expand All @@ -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;
}

Expand All @@ -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()
Expand Down

0 comments on commit 539742a

Please sign in to comment.