diff --git a/CRM/Twingle/Profile.php b/CRM/Twingle/Profile.php index 96e26d6..b57fd6f 100644 --- a/CRM/Twingle/Profile.php +++ b/CRM/Twingle/Profile.php @@ -191,7 +191,7 @@ public function getAttribute($attribute_name, $default = NULL) { * @param string $attribute_name * @param mixed $value * - * @throws \Exception + * @throws \CRM\Twingle\Exceptions\ProfileException * When the attribute name is not known. */ public function setAttribute($attribute_name, $value) { @@ -221,7 +221,8 @@ public function getTransactionID($twingle_id) { * Verifies whether the profile is valid (i.e. consistent and not colliding * with other profiles). * - * @throws Exception + * @throws \CRM\Twingle\Exceptions\ProfileValidationError + * @throws \Civi\Core\Exception\DBQueryException * When the profile could not be successfully validated. */ public function verifyProfile() { @@ -231,7 +232,9 @@ public function verifyProfile() { } /** - * Persists the profile within the CiviCRM settings. + * Persists the profile within the database. + * + * @throws \CRM\Twingle\Exceptions\ProfileException */ public function saveProfile() { // make sure it's valid @@ -269,7 +272,7 @@ public function saveProfile() { /** * Deletes the profile from the database * - * @throws \CRM_Twingle_Exceptions_ProfileException + * @throws \CRM\Twingle\Exceptions\ProfileException */ public function deleteProfile() { // Do only reset default profile @@ -447,6 +450,7 @@ public static function createDefaultProfile($name = 'default') { * @param $project_id * * @return CRM_Twingle_Profile + * @throws \Civi\Core\Exception\DBQueryException */ public static function getProfileForProject($project_id) { $profiles = self::getProfiles(); @@ -468,6 +472,7 @@ public static function getProfileForProject($project_id) { * * @return CRM_Twingle_Profile | NULL * @throws \Civi\Core\Exception\DBQueryException + * @throws \CRM\Twingle\Exceptions\ProfileException */ public static function getProfile(int $id = NULL) { if (!empty($id)) {