public function __construct($name = "", $value = []) { $this->__name = $name; foreach ($value as $k => $v) { $this->{$k} = $v; } }