/** * @param \Cms\Data\User $data */ protected function setValuesFromData(UserData $data) { $this->setId($data->getId()); $this->setLastname($data->getLastname()); $this->setFirstname($data->getFirstname()); $this->setGender($data->getGender()); $this->setEmail($data->getEmail()); $this->setLanguage($data->getLanguage()); $this->setSuperuser($data->isSuperuser()); $this->setDeletable($data->isDeletable()); $this->setOwner($data->isOwner()); $this->setReadonly($data->isReadonly()); $this->setGroups($data->getGroups()); }