DirectDestinations
in package
A namespaced client for the "/v1/airport/direct-destinations" endpoints.
Access via the Amadeus client object.
$amadeus = Amadeus::builder("clientId", "secret")->build(); $amadeus->getAirport()->getDirectDestinations();
Table of Contents
- $amadeus : Amadeus
- __construct() : mixed
- Constructor
- get() : array<string|int, Destination>
- Airport Routes API:
Properties
$amadeus
private
Amadeus
$amadeus
Methods
__construct()
Constructor
public
__construct(Amadeus $amadeus) : mixed
Parameters
- $amadeus : Amadeus
Return values
mixed —get()
Airport Routes API:
public
get(array<string|int, mixed> $params) : array<string|int, Destination>
Find all destinations served by a given airport.
$amadeus->getAirport()->getDirectDestinations()->get( ["departureAirportCode" => "MAD", "max" => 2] );
Parameters
- $params : array<string|int, mixed>
-
the parameters to send to the API
Tags
Return values
array<string|int, Destination> —an API resource