|
| | setFirstName (string $firstName) |
| | Set the first name of the passenger.
|
| |
| | setLastName (string $lastName) |
| | Set the last name of the passenger.
|
| |
| | getPassenger () |
| | Get the passenger data as an array.
|
| |
| | validate () |
| | Validate the passenger data.
|
| |
◆ getPassenger()
Get the passenger data as an array.
- Returns
- array|null Returns the passenger data as an array or null if not set.
◆ setFirstName()
| setFirstName |
( |
string |
$firstName | ) |
|
Set the first name of the passenger.
- Parameters
-
| string | $firstName | The first name of the passenger. |
- Returns
- static Returns the instance of the class for method chaining.
◆ setLastName()
| setLastName |
( |
string |
$lastName | ) |
|
Set the last name of the passenger.
- Parameters
-
| string | $lastName | The last name of the passenger. |
- Returns
- static Returns the instance of the class for method chaining.
◆ validate()
Validate the passenger data.
- Returns
- void
- Exceptions
-
InvalidArgumentException If first name or last name is missing.
The documentation for this class was generated from the following file: