add method to create a result array

This commit is contained in:
Marc Michalsky forumZFD 2020-10-15 11:06:20 +02:00
parent 4a738a9067
commit 99ff3bc38e
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -379,4 +379,24 @@ class TwingleApiCall {
return $response;
}
/**
* Returns a result array
*
* @param $values
* Project values to generate result array from
*
* @param $status
* Status of the array
*
* @return array
*/
private function getResultArray($values, $status) {
return [
"title" => $values['name'],
"project_id" => (int) $values['id'],
"project_type" => $values['project_type'],
"status" => $status
];
}
}