---
title: "init(nameComponents:phoneNumber:emailAddress:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/inrestaurantguest/init(namecomponents:phonenumber:emailaddress:)"
---

# init(nameComponents:phoneNumber:emailAddress:)

Initializes the object with the specified name and contact information for the user.

## Declaration

```swift
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

Return Value An initialized restaurant guest object or nil if the object could not be created.

## Discussion

Discussion This method stores a copy of the phoneNumber and emailAddress objects that you provide.
