BaseField
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
jsonSerialize()
{@inheritdoc}
Details
at line 73
__construct(string $id, string $name)
BaseField constructor.
at line 79
getId()
at line 84
getName()
at line 92
FieldInterface
setName(string $name)
at line 99
isRequired()
at line 107
FieldInterface
setRequired(bool $required)
at line 114
isLocalized()
at line 122
FieldInterface
setLocalized(bool $localized)
at line 129
isDisabled()
at line 137
FieldInterface
setDisabled(bool $disabled)
at line 144
isOmitted()
at line 152
FieldInterface
setOmitted(bool $omitted)
at line 162
ValidationInterface[]
getValidations()
at line 172
FieldInterface
setValidations(array $validations)
at line 184
FieldInterface
addValidation(ValidationInterface $validation)
at line 198
jsonSerialize()
{@inheritdoc}