Targeting these particular functions because a universe search shows they are used outside of core.
*/
/**
- * Access Control EntityRole.
- *
* @deprecated
*/
class CRM_ACL_BAO_EntityRole extends CRM_ACL_BAO_ACLEntityRole {}
* Individual, Household or Organization.
*
*
- * @return array
+ * @return array|string[]
* id => "nice name" of rule group
*/
- public static function getByType($contactType = NULL) {
+ public static function getByType($contactType = NULL): array {
$dao = new CRM_Dedupe_DAO_DedupeRuleGroup();
if ($contactType) {
*/
/**
- * Manages dedupe exceptions - ie pairs marked as non-duplicates.
+ * @deprecated
*/
class CRM_Dedupe_BAO_Exception extends CRM_Dedupe_BAO_DedupeException {}
*/
/**
- *
- * @package CRM
- * @copyright CiviCRM LLC https://civicrm.org/licensing
+ * @deprecated
*/
+class CRM_Dedupe_BAO_Rule extends CRM_Dedupe_BAO_DedupeRule {
-/**
- * The CiviCRM duplicate discovery engine is based on an
- * algorithm designed by David Strauss <david@fourkitchens.com>.
- */
-class CRM_Dedupe_BAO_Rule extends CRM_Dedupe_BAO_DedupeRule {}
+ /**
+ * @param int $cid
+ * @param int $oid
+ * @deprecated
+ * @return bool
+ */
+ public static function validateContacts($cid, $oid) {
+ CRM_Core_Error::deprecatedFunctionWarning('CRM_Dedupe_BAO_DedupeRule::validateContacts');
+ return parent::validateContacts($cid, $oid);
+ }
+
+ /**
+ * @param array $params
+ * @deprecated
+ * @return array
+ */
+ public static function dedupeRuleFields($params) {
+ CRM_Core_Error::deprecatedFunctionWarning('CRM_Dedupe_BAO_DedupeRule::dedupeRuleFields');
+ return parent::dedupeRuleFields($params);
+ }
+
+}
*/
/**
- *
- * @package CRM
- * @copyright CiviCRM LLC https://civicrm.org/licensing
+ * @deprecated
*/
+class CRM_Dedupe_BAO_RuleGroup extends CRM_Dedupe_BAO_DedupeRuleGroup {
-/**
- * The CiviCRM duplicate discovery engine is based on an
- * algorithm designed by David Strauss <david@fourkitchens.com>.
- */
-class CRM_Dedupe_BAO_RuleGroup extends CRM_Dedupe_BAO_DedupeRuleGroup {}
+ /**
+ * @deprecated
+ * @param string $contactType
+ * @return array|string[]
+ */
+ public static function getByType($contactType = NULL): array {
+ CRM_Core_Error::deprecatedFunctionWarning('APIv4 DedupeRuleGroup::get');
+ return parent::getByType($contactType);
+ }
+
+}