Option
in package
implements
OptionInterface, JsonSerializable
Class Option
Interfaces, Classes and Traits
- OptionInterface
- Interface OptionInterface
- JsonSerializable
Table of Contents
- $group : string
- $name : string
- $type : string|null
- $value : mixed
- __construct() : mixed
- Option constructor.
- group() : string
- jsonSerialize() : mixed
- Specify data which should be serialized to JSON
- name() : string
- type() : string|null
- value() : mixed
Properties
$group
protected
string
$group
$name
protected
string
$name
$type
protected
string|null
$type
$value
protected
mixed
$value
Methods
__construct()
Option constructor.
public
__construct(string $name, string $group, string|null $type, $value) : mixed
Parameters
Return values
mixed —group()
public
group() : string
Return values
string —jsonSerialize()
Specify data which should be serialized to JSON
public
jsonSerialize() : mixed
Tags
Return values
mixed —data which can be serialized by json_encode, which is a value of any type other than a resource.
name()
public
name() : string
Return values
string —type()
public
type() : string|null
Return values
string|null —value()
public
value() : mixed