Settings
class Settings (View source)
This class provides a configuration container using magic methods for accessing and modifying properties. It utilizes traits for handling property access, setting, checking existence, and unsetting.
Methods:
__get(string $name): mixed: Magic getter method__set(string $name, mixed $value): void: Magic setter method to dynamically set properties.__isset(string $name): bool: This method is triggered by calling isset() or empty() on inaccessible (protected or private) or non-existing properties.__unset(string $name): void: This method is invoked when unset() is used on inaccessible (protected or private) or non-existing properties.__construct(array $property = []): Constructor to initialize the Settings object.__debugInfo(): array: Magic method for debugging.
Fields:
$property: Stores properties for dynamic property access.
Traits
This trait provides a private array property intended for use with magic setter and getter methods.
This trait is utilized for reading data from inaccessible (protected or private) or non-existing properties.
This trait is run when writing data to inaccessible (protected or private) or non-existing properties.
This trait provides magic methods to handle __isset and unset operations on inaccessible or non-existing properties within a class.
This trait provides a private array property intended for use with magic setter and getter methods.
This trait provides a private array property intended for use with magic setter and getter methods.
This trait provides a private array property intended for use with magic setter and getter methods.
Methods
Magic method to get the value of inaccessible or non-existing properties.
This method is run when writing data to inaccessible (protected or private) or non-existing properties.
This method is triggered by calling isset() or empty() on inaccessible (protected or private) or non-existing properties.
This method is invoked when unset() is used on inaccessible (protected or private) or non-existing properties.
Constructor to initialize the Settings object.
Magic method for debugging.
Details
in
Getter at line 26
mixed
__get(string $name)
Magic method to get the value of inaccessible or non-existing properties.
in
Setter at line 27
void
__set(string $name, mixed $value)
This method is run when writing data to inaccessible (protected or private) or non-existing properties.
bool
__isset(string $name)
This method is triggered by calling isset() or empty() on inaccessible (protected or private) or non-existing properties.
void
__unset(string $name)
This method is invoked when unset() is used on inaccessible (protected or private) or non-existing properties.
__construct(array $property = [])
Constructor to initialize the Settings object.
array
__debugInfo()
Magic method for debugging.
Returns the property array used for storing settings.