public function setGroup($group = null) { $this->group = $group; if ($group === null) { $this->group = Gpf_Common_String::generateId(10); } }