class Field implements FieldInterface (View source)

Properties

protected string $key
protected string $label
protected string $description
protected bool $isRequired

Methods

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

No description

string
getKey()

No description

string
getLabel()

No description

string
getDescription()

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

Details

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

No description

Parameters

string $key
string $label
string $description
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