add comments

This commit is contained in:
Marc Michalsky forumZFD 2020-09-28 14:13:19 +02:00
parent 3f3a8eb04d
commit f54f3bf262
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
3 changed files with 32 additions and 7 deletions

View file

@ -99,10 +99,13 @@ class TwingleApiCall {
return $result;
}
public function createProject($values) {
try {
if (is_array($values)) {
$project = new TwingleProject($values);
/**
* @param $values
*
* @return array|null
* @throws \CiviCRM_API3_Exception
* @throws \Exception
*/
return $project->create();
}
} catch (\Exception $e) {