Sets the value of a field.
string $name The field name:
string|array $value The value of the field:
\InvalidArgumentException if the field does not exist
public function offsetSet(mixed $name, mixed $value) : void { $this->fields ->set($name, $value); }