Class PersonalInformation
java.lang.Object
passport.domain.contexts.user.forms.PersonalInformation
Represents the personal information for a user, including name and CPF.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the CPF for the personal information.Sets the name for the personal information.submit()
Submits the personal information and returns a Person object.
-
Constructor Details
-
PersonalInformation
public PersonalInformation()
-
-
Method Details
-
name
Sets the name for the personal information.- Parameters:
name
- the user's name- Returns:
- the updated PersonalInformation object
-
cpf
Sets the CPF for the personal information.- Parameters:
cpf
- the user's CPF- Returns:
- the updated PersonalInformation object
-
submit
Submits the personal information and returns a Person object.- Returns:
- a new Person object with the provided name and CPF
- Throws:
NullPointerException
- if the name or CPF is null
-