public function Project($params = null) { $project = new Project($this); if (!is_null($params)) { $project->set_params($params); } return $project; }