AmadeusBuilder
in package
Table of Contents
- $configuration : Configuration
- __construct() : mixed
- build() : Amadeus
- Return a Amadeus object.
- getConfiguration() : Configuration
- setHost() : $this
- Set the optional custom host domain to use for API calls.
- setHttpClient() : AmadeusBuilder
- Set the http client to use. Defaults to BasicHTTPClient.
- setLogLevel() : $this
- Set the log level for debugging.
- setPort() : AmadeusBuilder
- Set the port to use. Defaults to 443 for an SSL connection, and 80 for a non SSL connection.
- setProductionEnvironment() : AmadeusBuilder
- Set to production environment.
- setSsl() : AmadeusBuilder
- Whether to use SSL. Defaults to true
- setTimeout() : $this
- Set the maximum number of seconds to allow cURL functions to execute.
Properties
$configuration
private
Configuration
$configuration
Methods
__construct()
public
__construct(Configuration $configuration) : mixed
Parameters
- $configuration : Configuration
Return values
mixed —build()
Return a Amadeus object.
public
build() : Amadeus
Return values
Amadeus —getConfiguration()
public
getConfiguration() : Configuration
Return values
Configuration —setHost()
Set the optional custom host domain to use for API calls.
public
setHost(string $host) : $this
Defaults to "test.api.amadeus.com" for a test environment, and "api.amadeus.com" for a production environment.
Parameters
- $host : string
Return values
$this —setHttpClient()
Set the http client to use. Defaults to BasicHTTPClient.
public
setHttpClient(HTTPClient $httpClient) : AmadeusBuilder
Parameters
- $httpClient : HTTPClient
Return values
AmadeusBuilder —setLogLevel()
Set the log level for debugging.
public
setLogLevel(string $logLevel) : $this
Parameters
- $logLevel : string
Return values
$this —setPort()
Set the port to use. Defaults to 443 for an SSL connection, and 80 for a non SSL connection.
public
setPort(int $port) : AmadeusBuilder
Parameters
- $port : int
Return values
AmadeusBuilder —setProductionEnvironment()
Set to production environment.
public
setProductionEnvironment() : AmadeusBuilder
Return values
AmadeusBuilder —setSsl()
Whether to use SSL. Defaults to true
public
setSsl(bool $ssl) : AmadeusBuilder
Parameters
- $ssl : bool
Return values
AmadeusBuilder —setTimeout()
Set the maximum number of seconds to allow cURL functions to execute.
public
setTimeout(int $timeout) : $this
Parameters
- $timeout : int