Parameter
class Parameter implements JsonSerializable
Properties
protected string | $id | ||
protected string | $name | ||
protected string|null | $description | ||
protected string | $type | ||
protected bool | $required | ||
protected string|int|bool | $default | ||
protected array | $options | ||
protected array |
$labels | ||
static protected string[] | $validTypes |
Methods
__construct(string $id, string $name, string $type)
Parameter constructor.
getId()
No description
getName()
No description
string|null
getDescription()
No description
setDescription(string $description = null)
No description
getType()
No description
isRequired()
No description
setRequired(bool $required)
No description
bool|int|string
getDefault()
No description
setDefault(bool|int|string $default)
No description
getOptions()
No description
setOptions(array $options)
No description
getLabels()
No description
jsonSerialize()
{@inheritdoc}
Details
at line 69
__construct(string $id, string $name, string $type)
Parameter constructor.
at line 77
getId()
at line 85
Parameter
setId(string $id)
at line 92
getName()
at line 100
Parameter
setName(string $name)
at line 110
string|null
getDescription()
at line 118
Parameter
setDescription(string $description = null)
at line 125
getType()
at line 133
Parameter
setType(string $type)
at line 144
isRequired()
at line 152
Parameter
setRequired(bool $required)
at line 162
bool|int|string
getDefault()
at line 172
Parameter
setDefault(bool|int|string $default)
at line 179
getOptions()
at line 187
Parameter
setOptions(array $options)
at line 194
getLabels()
at line 202
Parameter
setLabels(array $labels)
at line 212
jsonSerialize()
{@inheritdoc}