FieldForm
in package
Table of Contents
- $defaultValue : string|null
- Default Value
- $multiple : bool
- Can the field be used multiple times?
- $type : string
- Field Type
- __construct() : mixed
- Constructing a FieldForm.
- getDefaultValue() : string|null
- Returns the default value.
- getType() : string
- Returns the type of the field.
- isMultiple() : bool
- Returns whether the parameter can be used multiple times.
Properties
$defaultValue
Default Value
private
string|null
$defaultValue
$multiple
Can the field be used multiple times?
private
bool
$multiple
$type
Field Type
private
string
$type
Methods
__construct()
Constructing a FieldForm.
public
__construct(string $type, bool $multiple, string $defaultValue) : mixed
Parameters
- $type : string
-
the type of the field
- $multiple : bool
-
can the parameter be used multiple times
- $defaultValue : string
-
the default value
Return values
mixed —getDefaultValue()
Returns the default value.
public
getDefaultValue() : string|null
Return values
string|null —getType()
Returns the type of the field.
public
getType() : string
Return values
string —isMultiple()
Returns whether the parameter can be used multiple times.
public
isMultiple() : bool