public function Settings(&$settings) { foreach ($settings as $key => $value) { $this->settings[$key] = $value; $this->{$key} = $value; } }