public function __construct(array $config) { foreach ($config as $key => $value) { $this->{$key} = $value; } }