Field
class Field implements FieldInterface (View source)
Properties
protected string | $key | ||
protected string | $label | ||
protected string | $description | ||
protected bool | $isRequired | ||
protected string|null | $shortcut |
Methods
__construct(string $key, string $label, string $description, bool $isRequired = false, string|null $shortcut = null)
No description
string
getKey()
No description
string
getLabel()
No description
string
getDescription()
No description
string|null
getShortcut()
No description
bool
FieldInterface|null
loadFieldFromRequest(array $data)
No description
FieldInterface|null
loadFieldFromConsoleInput(InputInterface $consoleInput)
No description
bool
isRequired()
No description
jsonSerialize()
No description
Details
__construct(string $key, string $label, string $description, bool $isRequired = false, string|null $shortcut = null)
No description
string
getKey()
No description
string
getLabel()
No description
string
getDescription()
No description
string|null
getShortcut()
No description
bool
isValid(FieldInterface $loadedField)
No description
FieldInterface|null
loadFieldFromRequest(array $data)
No description
FieldInterface|null
loadFieldFromConsoleInput(InputInterface $consoleInput)
No description
bool
isRequired()
No description
jsonSerialize()
No description
addToCommand(TaskCommand $command)
No description