public function populate(array $data) { foreach ($data as $name => $value) { $this->set($name, $value); } return $this; }