Merge pull request #22333 from mlutfy/fixTsRecaptcha
[civicrm-core.git] / CRM / Core / Reference / OptionValue.php
index 94db03591258208aa3d630ebfd4632a739c2b7f8..46413212392c93f1ba175eae9c06283a948ef5ba 100644 (file)
@@ -5,12 +5,16 @@
  */
 class CRM_Core_Reference_OptionValue extends CRM_Core_Reference_Basic {
   /**
-   * @var string option-group-name
+   * Option group name.
+   *
+   * @var string
    */
   protected $targetOptionGroupName;
 
   /**
-   * @var int|NULL null if not yet loaded
+   * Target Option Group ID.
+   *
+   * @var int|null
    */
   protected $targetOptionGroupId;
 
@@ -21,7 +25,7 @@ class CRM_Core_Reference_OptionValue extends CRM_Core_Reference_Basic {
    * @param string $targetKey
    * @param null $optionGroupName
    */
-  public function __construct($refTable, $refKey, $targetTable = NULL, $targetKey = 'id', $optionGroupName) {
+  public function __construct($refTable, $refKey, $targetTable, $targetKey, $optionGroupName) {
     parent::__construct($refTable, $refKey, $targetTable, $targetKey, NULL);
     $this->targetOptionGroupName = $optionGroupName;
   }
@@ -45,6 +49,8 @@ class CRM_Core_Reference_OptionValue extends CRM_Core_Reference_Basic {
   }
 
   /**
+   * Get Reference Count.
+   *
    * @param CRM_Core_DAO $targetDao
    *
    * @return array|null
@@ -63,7 +69,9 @@ class CRM_Core_Reference_OptionValue extends CRM_Core_Reference_Basic {
   }
 
   /**
-   * @return int|NULL
+   * Get target option group ID.
+   *
+   * @return int
    */
   public function getTargetOptionGroupId() {
     if ($this->targetOptionGroupId === NULL) {