class BaseField implements FieldInterface

BaseField class.

This class is the shared base for concrete field implementations.

Properties

protected string $id ID of the Field.
protected string $name Name of the Field.
protected bool $required Describes whether the Field is mandatory.
protected bool $localized Describes whether the Field is localized.
protected bool $disabled Describes whether the Field is disabled.
protected bool $omitted True if the field is omitted from CDA responses.
protected ValidationInterface[] $validations

Methods

__construct(string $id, string $name)

BaseField constructor.

getId()

No description

getName()

No description

setName(string $name)

No description

isRequired()

No description

setRequired(bool $required)

No description

isLocalized()

No description

setLocalized(bool $localized)

No description

isDisabled()

No description

setDisabled(bool $disabled)

No description

isOmitted()

No description

setOmitted(bool $omitted)

No description

getValidations()

No description

setValidations(array $validations)

No description

addValidation(ValidationInterface $validation)

No description

jsonSerialize()

{@inheritdoc}

Details

at line 73
__construct(string $id, string $name)

BaseField constructor.

Parameters

string $id
string $name

at line 79
getId()

at line 84
getName()

at line 92
FieldInterface setName(string $name)

Parameters

string $name

Return Value

FieldInterface

at line 99
isRequired()

at line 107
FieldInterface setRequired(bool $required)

Parameters

bool $required

Return Value

FieldInterface

at line 114
isLocalized()

at line 122
FieldInterface setLocalized(bool $localized)

Parameters

bool $localized

Return Value

FieldInterface

at line 129
isDisabled()

at line 137
FieldInterface setDisabled(bool $disabled)

Parameters

bool $disabled

Return Value

FieldInterface

at line 144
isOmitted()

at line 152
FieldInterface setOmitted(bool $omitted)

Parameters

bool $omitted

Return Value

FieldInterface

at line 162
ValidationInterface[] getValidations()

Return Value

ValidationInterface[]

at line 172
FieldInterface setValidations(array $validations)

Parameters

array $validations

Return Value

FieldInterface

at line 184
FieldInterface addValidation(ValidationInterface $validation)

Parameters

ValidationInterface $validation

Return Value

FieldInterface

at line 198
jsonSerialize()

{@inheritdoc}