SettingsContainerAbstract
- Full name:
\chillerlan\Settings\SettingsContainerAbstract
- This class implements:
\chillerlan\Settings\SettingsContainerInterface
- This class is an Abstract class
Methods
__construct
SettingsContainerAbstract constructor.
Parameters:
Parameter | Type | Description |
---|---|---|
$properties |
iterable |
construct
calls a method with trait name as replacement constructor for each used trait (remember pre-php5 classname constructors? yeah, basically this.)
__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
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 |
fromJSON
Sets properties from a given JSON string
Parameters:
Parameter | Type | Description |
---|---|---|
$json |
string |
jsonSerialize
Automatically generated on 2025-03-18