[NFC] Remove some more of the old cvs blocks
[civicrm-core.git] / Civi / Api4 / Action / Setting / Set.php
index b4d3727a0ea9f9c656369c7a1a95703bda00e378..cd8413331f7341b059ac3332c27b0c1b3400bb8d 100644 (file)
  +--------------------------------------------------------------------+
  */
 
-/**
- *
- * @package CRM
- * @copyright CiviCRM LLC https://civicrm.org/licensing
- * $Id$
- *
- */
-
 namespace Civi\Api4\Action\Setting;
 
 use Civi\Api4\Generic\Result;
@@ -27,7 +19,6 @@ use Civi\Api4\Generic\Result;
  *
  * @method array getValues
  * @method $this setValues(array $value)
- * @method $this addValue(string $name, mixed $value)
  */
 class Set extends AbstractSettingAction {
 
@@ -60,4 +51,15 @@ class Set extends AbstractSettingAction {
     }
   }
 
+  /**
+   * Add an item to the values array
+   * @param string $settingName
+   * @param mixed $value
+   * @return $this
+   */
+  public function addValue($settingName, $value) {
+    $this->values[$settingName] = $value;
+    return $this;
+  }
+
 }