Skip to content
PHP Ecosystem
Explore

MultiValueInterface

API reference › HTML Contracts › Form › MultiValueInterface

interfaceUIAwesome\Html\Contracts\Form\MultiValueInterface
Sourcesrc/Form/MultiValueInterface.php
Implemented by 1 type

Defines the contract for form controls that accept one or many values.

Applies to controls such as multiple-selection lists and choice lists, where the value is either a scalar or a set of selected values.

MethodDescriptionDefined by
value() abstractSets the value attribute.MultiValueInterface
abstract public function value(mixed[]|bool|float|int|string|Stringable|UnitEnum|null $value): static

Sets the value attribute.

Parameters

ParameterTypeDescription
$valuemixed[]|bool|float|int|string|Stringable|UnitEnum|nullSingle value or set of selected values, or null to remove the attribute.

Returns

static: New instance with the updated value attribute.