SelectField
class SelectField extends Field (View source)
Properties
protected string | $key | from Field | |
protected string | $label | from Field | |
protected string | $description | from Field | |
protected bool | $isRequired | from Field | |
protected string|null | $shortcut | from Field | |
protected array | $options |
Methods
__construct(string $key, string $label, string $description, array $options, bool $isRequired = false)
No description
bool
FieldInterface|null
loadFieldFromConsoleInput(InputInterface $consoleInput)
No description
from
Field
jsonSerialize()
No description
array
getOptions()
No description
getConsoleDescription()
No description
Details
__construct(string $key, string $label, string $description, array $options, bool $isRequired = false)
No description
in
Field at line 53
string
getKey()
No description
in
Field at line 61
string
getLabel()
No description
in
Field at line 69
string
getDescription()
No description
in
Field at line 74
string|null
getShortcut()
No description
bool
isValid(FieldInterface $loadedField)
No description
in
Field at line 88
FieldInterface|null
loadFieldFromRequest(array $data)
No description
in
Field at line 93
FieldInterface|null
loadFieldFromConsoleInput(InputInterface $consoleInput)
No description
in
Field at line 112
bool
isRequired()
No description
jsonSerialize()
No description
addToCommand(TaskCommand $command)
No description
array
getOptions()
No description
protected
getConsoleDescription()
No description