add method to create a result array
This commit is contained in:
parent
4a738a9067
commit
99ff3bc38e
1 changed files with 20 additions and 0 deletions
|
@ -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
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue