Merge pull request #22035 from eileenmcnaughton/campaign
[civicrm-core.git] / CRM / Core / Reference / Interface.php
index 371981a3a52c47e1b79e356ba0176af140b16370..c5ee1fff58af78c20059bda123d78def2743f01c 100644 (file)
@@ -4,6 +4,7 @@
  * Interface CRM_Core_Reference_Interface
  */
 interface CRM_Core_Reference_Interface {
+
   public function getReferenceTable();
 
   public function getReferenceKey();
@@ -17,7 +18,7 @@ interface CRM_Core_Reference_Interface {
   public function matchesTargetTable($tableName);
 
   /**
-   * Create a query to find references to a particular record
+   * Create a query to find references to a particular record.
    *
    * @param CRM_Core_DAO $targetDao
    *   The instance for which we want references.
@@ -26,14 +27,15 @@ interface CRM_Core_Reference_Interface {
   public function findReferences($targetDao);
 
   /**
-   * Create a query to find references to a particular record
+   * Create a query to find references to a particular record.
    *
    * @param CRM_Core_DAO $targetDao
    *   The instance for which we want references.
-   * @return array
+   * @return array{type: string, count: int}|NULL
    *   a record describing the reference; must include the keys:
    *   - 'type': string (not necessarily unique)
    *   - 'count': int
    */
   public function getReferenceCount($targetDao);
+
 }