docblock improvements to Import_Field classes
authorBradley Taylor <hello@brad-taylor.co.uk>
Mon, 3 Jan 2022 17:20:07 +0000 (17:20 +0000)
committerBradley Taylor <hello@brad-taylor.co.uk>
Mon, 3 Jan 2022 17:20:07 +0000 (17:20 +0000)
CRM/Activity/Import/Field.php
CRM/Contact/Import/Field.php
CRM/Contribute/Import/Field.php
CRM/Event/Import/Field.php
CRM/Member/Import/Field.php

index 7061cc1c635714727aff6e8df23ea4e5d8cab589..b3d4cbed04d82746269f0097e262962ca42f4f3b 100644 (file)
@@ -30,7 +30,7 @@ class CRM_Activity_Import_Field {
 
   /**
    * Type of field
-   * @var enum
+   * @var int
    */
   public $_type;
 
@@ -60,13 +60,13 @@ class CRM_Activity_Import_Field {
 
   /**
    * Value of this field
-   * @var object
+   * @var string|null
    */
   public $_value;
 
   /**
    * @param string $name
-   * @param $title
+   * @param string $title
    * @param int $type
    * @param string $headerPattern
    * @param string $dataPattern
@@ -88,7 +88,7 @@ class CRM_Activity_Import_Field {
   /**
    * The value is in string format. convert the value to the type of this field
    * and set the field value with the appropriate type
-   * @param $value
+   * @param string $value
    */
   public function setValue($value) {
     $this->_value = $value;
index 914a0e20313deeae693dfe38e09ebc57baf62471..20d75656f9b1a52e0d37aeae4d14acc5a2fa8200 100644 (file)
@@ -33,7 +33,7 @@ class CRM_Contact_Import_Field {
 
   /**
    * Type of field
-   * @var enum
+   * @var int
    */
   public $_type;
 
@@ -81,7 +81,7 @@ class CRM_Contact_Import_Field {
 
   /**
    * Value of this field
-   * @var object
+   * @var string|null
    */
   public $_value;
 
@@ -117,7 +117,7 @@ class CRM_Contact_Import_Field {
 
   /**
    * @param string $name
-   * @param $title
+   * @param string $title
    * @param int $type
    * @param string $columnPattern
    * @param string $dataPattern
@@ -156,7 +156,7 @@ class CRM_Contact_Import_Field {
    * Convert the value to the type of this field
    * and set the field value with the appropriate type
    *
-   * @param mixed $value
+   * @param string $value
    */
   public function setValue($value) {
     $this->_value = $value;
index fec6a56cb76af4c1eb29f1665e3b1c7fdb3727cb..cd69b469a552c750814d5459e62cc7cb31254b45 100644 (file)
@@ -35,7 +35,7 @@ class CRM_Contribute_Import_Field {
 
   /**
    * Type of field
-   * @var enum
+   * @var int
    */
   public $_type;
 
@@ -66,7 +66,7 @@ class CRM_Contribute_Import_Field {
 
   /**
    * Value of this field
-   * @var object
+   * @var string|null
    */
   public $_value;
 
@@ -78,7 +78,7 @@ class CRM_Contribute_Import_Field {
 
   /**
    * @param string $name
-   * @param $title
+   * @param string $title
    * @param int $type
    * @param string $headerPattern
    * @param string $dataPattern
@@ -104,7 +104,7 @@ class CRM_Contribute_Import_Field {
    * The value is in string format. Convert the value to the type of this field
    * and set the field value with the appropriate type
    *
-   * @param $value
+   * @param string $value
    */
   public function setValue($value) {
     $this->_value = $value;
index 8bba7e00f17c0566f603f5e69fa888e89c167091..a3062a2ec0e7b5926f95837011c5701e387a074b 100644 (file)
@@ -33,7 +33,7 @@ class CRM_Event_Import_Field {
 
   /**
    * Type of field
-   * @var enum
+   * @var int
    */
   public $_type;
 
@@ -51,13 +51,13 @@ class CRM_Event_Import_Field {
 
   /**
    * Value of this field
-   * @var object
+   * @var string|null
    */
   public $_value;
 
   /**
    * @param string $name
-   * @param $title
+   * @param string $title
    * @param int $type
    * @param string $headerPattern
    * @param string $dataPattern
@@ -95,8 +95,8 @@ class CRM_Event_Import_Field {
 
     switch ($this->_name) {
       case 'contact_id':
-        // note: we validate extistence of the contact in API, upon
-        // insert (it would be too costlty to do a db call here)
+        // note: we validate existence of the contact in API, upon
+        // insert (it would be too costly to do a db call here)
         return CRM_Utils_Rule::integer($this->_value);
 
       case 'register_date':
index c1898d66e3273dc3fb67817e8e76b3e7ae6dcbee..e4f44e5b3d2899a604b552aef04230297e743b82 100644 (file)
@@ -35,7 +35,7 @@ class CRM_Member_Import_Field {
 
   /**
    * Type of field
-   * @var enum
+   * @var int
    */
   public $_type;
 
@@ -65,13 +65,13 @@ class CRM_Member_Import_Field {
 
   /**
    * Value of this field
-   * @var object
+   * @var string|null
    */
   public $_value;
 
   /**
    * @param string $name
-   * @param $title
+   * @param string $title
    * @param int $type
    * @param string $headerPattern
    * @param string $dataPattern
@@ -94,7 +94,7 @@ class CRM_Member_Import_Field {
    * The value is in string format. convert the value to the type of this field
    * and set the field value with the appropriate type
    *
-   * @param $value
+   * @param string $value
    */
   public function setValue($value) {
     $this->_value = $value;
@@ -111,8 +111,8 @@ class CRM_Member_Import_Field {
 
     switch ($this->_name) {
       case 'contact_id':
-        // note: we validate extistence of the contact in API, upon
-        // insert (it would be too costlty to do a db call here)
+        // note: we validate existence of the contact in API, upon
+        // insert (it would be too costly to do a db call here)
         return CRM_Utils_Rule::integer($this->_value);
 
       case 'receive_date':