/** * @param PersonCategoryRegisterDTO $personCategoryDTO * @param PersonCategory $personCategory * @return PersonCategory */ public function registerDTOtoPersonCategory(PersonCategoryRegisterDTO $personCategoryDTO, PersonCategory $personCategory) { $personCategory->updatePersonCategoryData($personCategoryDTO->name, $personCategoryDTO->memo); return $personCategory; }