init(nameComponents:phoneNumber:emailAddress:)
Initializes the object with the specified name and contact information for the user.
Declaration
init(nameComponents: PersonNameComponents?, phoneNumber: String?, emailAddress: String?)Parameters
- nameComponents:
The name of the user who is creating or managing the reservation.
- phoneNumber:
The phone number to use when contacting the user about reservations. Specify the information as a user-readable string that can be displayed in the reservations interface.
- emailAddress:
The email address to use when contacting the user about reservations. Specify the information as a user-readable string that can be displayed in the reservations interface.
Return Value
An initialized restaurant guest object or nil if the object could not be created.
Discussion
This method stores a copy of the phoneNumber and emailAddress objects that you provide.