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
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, string|null $shortcut = null)

No description

Parameters

string $key
string $label
string $description
bool $isRequired
string|null $shortcut

string getKey()

No description

Return Value

string

string getLabel()

No description

Return Value

string

string getDescription()

No description

Return Value

string

string|null getShortcut()

No description

Return Value

string|null

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