Overview

Namespaces

  • SmsOrange
    • Cruise

Classes

  • Cruise
  • Dispatcher
  • Main

Interfaces

  • Bookable
  • Overview
  • Namespace
  • Class

Class Main

Class Main

Main abstract class for all booking services.

Direct known subclasses

SmsOrange\Cruise, SmsOrange\Cruise\CostaCruisesWebservice, SmsOrange\Cruise\ManualCruisesWebservice
Abstract
Namespace: SmsOrange
Package: SmsOrange
Located at Main.php
Methods summary
protected
# __construct( )

Main constructor.

Main constructor.

Loads up the config.

Utilizes 'illuminate/config' package.

final protected string
# getApiMethod( string $serviceName, string $callerMethod )

Returns an API method mapped to the current action.

Returns an API method mapped to the current action.

Mappings are read from the config file.

Parameters

$serviceName
Cruise, Tour
$callerMethod
caller function name bound by the Bookable contract

Returns

string
name of the API method
final protected Unirest\Response
# executeRequest( string $url, string $method, array $body )

Executes a HTTP Request using the Unirest library (http://unirest.io)

Executes a HTTP Request using the Unirest library (http://unirest.io)

Parameters

$url
API base url
$method
API method
$body
body of the request

Returns

Unirest\Response
object
Properties summary
protected $config
#
protected array $headers
# []
API documentation generated by ApiGen