composer.json - Move ezc components from packages to composer.json
[civicrm-core.git] / CRM / Case / ManagedEntities.php
index 6604e9e2f29e617f0956fc89c922e5c7236eb7bf..daeebe989b037043d0cc1e29e64f99dda9c22c64 100644 (file)
@@ -1,5 +1,8 @@
 <?php
 
+/**
+ * Class CRM_Case_ManagedEntities
+ */
 class CRM_Case_ManagedEntities {
 
   /**
@@ -52,11 +55,13 @@ class CRM_Case_ManagedEntities {
   }
 
   /**
-   * Get a list of managed activity-types by searching CiviCase XML files
+   * Get a list of managed activity-types by searching CiviCase XML files.
+   *
+   * @param \CRM_Case_XMLRepository $xmlRepo
+   * @param \CRM_Core_ManagedEntities $me
    *
    * @return array
    * @see CRM_Utils_Hook::managed
-   * @throws CRM_Core_Exception
    */
   public static function createManagedActivityTypes(CRM_Case_XMLRepository $xmlRepo, CRM_Core_ManagedEntities $me) {
     $result = array();
@@ -77,7 +82,7 @@ class CRM_Case_ManagedEntities {
           'name' => $actType,
           'description' => $actType,
           'component_id' => 'CiviCase',
-        )
+        ),
       );
 
       // We'll create managed-entity if this record doesn't exist yet
@@ -94,11 +99,13 @@ class CRM_Case_ManagedEntities {
   }
 
   /**
-   * Get a list of managed relationship-types by searching CiviCase XML files
+   * Get a list of managed relationship-types by searching CiviCase XML files.
+   *
+   * @param \CRM_Case_XMLRepository $xmlRepo
+   * @param \CRM_Core_ManagedEntities $me
    *
    * @return array
    * @see CRM_Utils_Hook::managed
-   * @throws CRM_Core_Exception
    */
   public static function createManagedRelationshipTypes(CRM_Case_XMLRepository $xmlRepo, CRM_Core_ManagedEntities $me) {
     $result = array();
@@ -125,7 +132,7 @@ class CRM_Case_ManagedEntities {
           'contact_type_b' => 'Individual',
           'contact_sub_type_a' => NULL,
           'contact_sub_type_b' => NULL,
-        )
+        ),
       );
 
       // We'll create managed-entity if this record doesn't exist yet
@@ -140,4 +147,5 @@ class CRM_Case_ManagedEntities {
 
     return $result;
   }
-}
\ No newline at end of file
+
+}