|
EPG PHP SDK
|
Inheritance diagram for FlightItem:Public Member Functions | |
| __construct () | |
| setDepartureDate (string $departureDate) | |
| Set the departure date for the flight. | |
| addPassenger (Passenger $passenger) | |
| Add a passenger to the flight item. | |
| addSegment (Segment $segment) | |
| Add a segment to the flight item. | |
| validate () | |
Public Member Functions inherited from Item | |
| setName (string $name) | |
| Set the name of the item. | |
| setType (string $type) | |
| Set the type of the item. | |
| setCategory (Category $category) | |
| Set the category of the item. | |
| setBrand (string $brand) | |
| Set the brand of the item. | |
| setDescription (string $description) | |
| Set the description of the item. | |
| setMPN (string $mpn) | |
| Set the MPN (Manufacturer Part Number) of the item. | |
| setImageUrl (string $imageUrl) | |
| Set the image URL of the item. | |
| setURL (string $url) | |
| Set the URL of the item. | |
| setReference (int $reference) | |
| Set the reference of the item. | |
| setTotalDiscount (float $totalDiscount) | |
| Set the total discount of the item. | |
| setUnitPriceWithTax (float $unitPrice) | |
| Set the unit price with tax of the item. | |
| setUnits (int $units) | |
| Set the number of units of the item. | |
| setTotalPriceWithTax (float $totalPrice) | |
| Set the total price with tax of the item. | |
| setAutoShipping (bool $autoShipping) | |
| Set whether the item has auto shipping. | |
| getItem () | |
| Get the item data as an array. | |
| getTotalPriceWithTax () | |
| Get the total price with tax of the item. | |
Additional Inherited Members | |
Protected Attributes inherited from Item | |
| array | $item = [] |
| __construct | ( | ) |
Reimplemented from Item.
| addPassenger | ( | Passenger | $passenger | ) |
Add a passenger to the flight item.
| Passenger | $passenger | The passenger object to add. |
| addSegment | ( | Segment | $segment | ) |
Add a segment to the flight item.
| Segment | $segment | The segment object to add. |
| setDepartureDate | ( | string | $departureDate | ) |
Set the departure date for the flight.
| string | $departureDate | The departure date in the format YYYY-MM-DDTHH:mm:ss+HH:mm. |
| InvalidFieldException | If the departure date is not in the correct format. |
| validate | ( | ) |
Reimplemented from Item.