function __construct($conf) { parent::__construct(); foreach ($conf as $key => $value) { $this->{$key} = $value; } }