/** * @param array $raw * @return Term */ protected function do_create_object(array $raw) { $obj = new Term($raw['term_id']); $obj->set_name($raw['name']); $obj->set_slug($raw['slug']); $obj->set_group($raw['term_group']); return $obj; }