Copied!
CloneableInstantiable
Methods
public Example\Setting::__call(string $name, array $args) : ?string
 
  • param array<string,mixed> $args
public Example\Setting::__construct(string $serverName = '')
public Example\Setting::__get(string $field) : ?mixed
 

Allows for $object->field syntax

Unset fields will return null

public Example\Setting::__set(string $field, ?mixed $value) : void
 

Allows for $object->field = $x syntax

public Example\Setting::addFields(array $fields) : static
 

Add fields

  • param array<string,mixed> $fields key / value field pairs that will be added to the existing settings
public Example\Setting::empty() : bool
public Example\Setting::getFields() : array
 
  • return array<string,mixed>
public Example\Setting::getLoadedFileName() : string
public Example\Setting::optional(string $key) : ?mixed
public Example\Setting::save() : bool
public Example\Setting::setFields(array $fields) : static
 

Set the fields

  • param array<string,mixed> $fields key / value field pairs that will now be valid fields
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration