SettingsContainerInterface
a generic container with magic getter and setter
- Full name:
\chillerlan\Settings\SettingsContainerInterface
- Parent interfaces:
JsonSerializable
Methods
__get
Retrieve the value of $property
Parameters:
Parameter | Type | Description |
---|---|---|
$property |
string |
__set
Set $property to $value while avoiding private and non-existing properties
Parameters:
Parameter | Type | Description |
---|---|---|
$property |
string | |
$value |
mixed |
__isset
Checks if $property is set (aka. not null), excluding private properties
Parameters:
Parameter | Type | Description |
---|---|---|
$property |
string |
__unset
Unsets $property while avoiding private and non-existing properties
Parameters:
Parameter | Type | Description |
---|---|---|
$property |
string |
__toString
See Also:
- \chillerlan\Settings\SettingsContainerInterface::toJSON() -
toArray
Returns an array representation of the settings object
fromIterable
Sets properties from a given iterable
Parameters:
Parameter | Type | Description |
---|---|---|
$properties |
iterable |
toJSON
Returns a JSON representation of the settings object
Parameters:
Parameter | Type | Description |
---|---|---|
$jsonOptions |
int |
See Also:
- \json_encode() -
fromJSON
Sets properties from a given JSON string
Parameters:
Parameter | Type | Description |
---|---|---|
$json |
string |
Throws:
Automatically generated on 2025-03-18