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