EPG PHP SDK
Loading...
Searching...
No Matches
Passenger Class Reference

Public Member Functions

 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.
 

Member Function Documentation

◆ getPassenger()

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$firstNameThe 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$lastNameThe last name of the passenger.
Returns
static Returns the instance of the class for method chaining.

◆ validate()

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: