rename "state" to "status" in response array

This commit is contained in:
Marc Michalsky forumZFD 2020-10-07 15:06:56 +02:00
parent 953adaf319
commit a9d9dd5ace
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
2 changed files with 9 additions and 9 deletions

View file

@ -100,7 +100,7 @@ class TwingleProject {
* If true: don't do any changes
*
* @return array
* Returns a response array that contains title, id, project_id and state
* Returns a response array that contains title, id, project_id and status
*
* @throws \CiviCRM_API3_Exception
*/
@ -518,20 +518,20 @@ class TwingleProject {
/**
* Get a response that describes the state of a TwingleProject
* Get a response that describes the status of a TwingleProject
*
* @param string $state
* State of the TwingleProject you want the response for
* @param string $status
* status of the TwingleProject you want the response for
*
* @return array
* Returns a response array that contains title, id, project_id and state
* Returns a response array that contains title, id, project_id and status
*/
public function getResponse(string $state) {
public function getResponse(string $status) {
return [
'title' => $this->values['title'],
'id' => $this->id,
'project_id' => $this->values['id'],
'state' => $state,
'status' => $status,
];
}