* @method $this setLoadOptions(bool $value)
* @method bool getLoadOptions()
* @method $this setAction(string $value)
- * @method $this addValue(string $value)
* @method $this setValues(array $values)
* @method array getValues()
*/
return $sub[$this->action] ?? $this->action;
}
+ /**
+ * Add an item to the values array
+ * @param string $fieldName
+ * @param mixed $value
+ * @return $this
+ */
+ public function addValue(string $fieldName, $value) {
+ $this->values[$fieldName] = $value;
+ return $this;
+ }
+
public function fields() {
return [
[