*/
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;
* @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;
}
}
/**
+ * Get Reference Count.
+ *
* @param CRM_Core_DAO $targetDao
*
* @return array|null
}
/**
- * @return int|NULL
+ * Get target option group ID.
+ *
+ * @return int
*/
public function getTargetOptionGroupId() {
if ($this->targetOptionGroupId === NULL) {