/** * Setup the configuration object with the given array. * * @param array $settings */ public function __construct(array $settings = array()) { $data = array_merge($this->getDefaults(), $settings); parent::__construct($data, \ArrayObject::ARRAY_AS_PROPS); }
/** * Prefill the configuration object with the given array. * * @param array $kga */ public function __construct(array $kga) { $data = array_merge($this->getCoreDefaults(), $kga); parent::__construct($data, \ArrayObject::ARRAY_AS_PROPS); }
/** * Create a new user instance, either empty or with the given $settings. * * @param array $data */ public function __construct(array $data) { parent::__construct($data, \ArrayObject::ARRAY_AS_PROPS); }