*/
class Contact extends CiviUnitTestCase {
/**
- * Helper function to create
+ * Helper function to create.
* a contact
*
* @param array $params
* a contact of type Household
*
* @param array $params
- * @return mixed $contactID id of created Household
+ * @return int
+ * id of created Household
*/
public static function createHousehold($params = NULL) {
//compose the params, when not passed
* a contact of type Organisation
*
* @param array $params
- * @return mixed $contactID id of created Organisation
+ * @return int
+ * id of created Organisation
*/
public static function createOrganisation($params = NULL) {
//compose the params, when not passed
}
/**
- * Helper function to delete a contact
+ * Helper function to delete a contact.
*
* @param int $contactID
* Id of the contact to delete.
- * @return boolean
+ * @return bool
* true if contact deleted, false otherwise
*/
public static function delete($contactID) {
require_once 'CRM/Contact/BAO/Contact.php';
return CRM_Contact_BAO_Contact::deleteContact($contactID);
}
+
}