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 array $options

Methods

__construct(string $key, string $label, string $description, array $options, bool $isRequired = false)

No description

string
getKey()

No description

from  Field
string
getLabel()

No description

from  Field
string
getDescription()

No description

from  Field
bool
isValid(FieldInterface $loadedField)

No description

FieldInterface|null
loadFieldFromRequest(array $data)

No description

from  Field
FieldInterface|null
loadFieldFromConsoleInput(InputInterface $consoleInput)

No description

from  Field
bool
isRequired()

No description

from  Field
jsonSerialize()

No description

addToCommand(TaskCommand $command)

No description

array
getOptions()

No description

getConsoleDescription()

No description

Details

__construct(string $key, string $label, string $description, array $options, bool $isRequired = false)

No description

Parameters

string $key
string $label
string $description
array $options
bool $isRequired

string getKey()

No description

Return Value

string

string getLabel()

No description

Return Value

string

string getDescription()

No description

Return Value

string

bool isValid(FieldInterface $loadedField)

No description

Parameters

FieldInterface $loadedField

Return Value

bool

FieldInterface|null loadFieldFromRequest(array $data)

No description

Parameters

array $data

Return Value

FieldInterface|null

FieldInterface|null loadFieldFromConsoleInput(InputInterface $consoleInput)

No description

Parameters

InputInterface $consoleInput

Return Value

FieldInterface|null

bool isRequired()

No description

Return Value

bool

jsonSerialize()

No description

addToCommand(TaskCommand $command)

No description

Parameters

TaskCommand $command

array getOptions()

No description

Return Value

array

protected getConsoleDescription()

No description