Value
in package
implements
YamlSerializable
Class Value
Tags
Table of Contents
Interfaces
- YamlSerializable
- Class YamlSerializable
Properties
Methods
- __construct() : mixed
- Value constructor.
- getName() : mixed
- Get the name.
- getValue() : mixed
- Get the saved value.
- setName() : mixed
- Set the name.
- setValue() : mixed
- Set the saved value.
- yamlSerialize() : array<string|int, mixed>
- Serialize a class to use in a .yml file.
Properties
$name
Option name
protected
string
$name
$value
Array with values
protected
array<string|int, mixed>
$value
Methods
__construct()
Value constructor.
public
__construct( $name, $value) : mixed
Parameters
getName()
Get the name.
public
getName() : mixed
getValue()
Get the saved value.
public
getValue() : mixed
setName()
Set the name.
public
setName(mixed $name) : mixed
Parameters
- $name : mixed
setValue()
Set the saved value.
public
setValue(mixed $value) : mixed
Parameters
- $value : mixed
yamlSerialize()
Serialize a class to use in a .yml file.
public
yamlSerialize() : array<string|int, mixed>
This should return a array which will be serialized by the caller.