Overview

Namespaces

  • SmsOrange
    • Cruise

Classes

  • Cruise
  • Dispatcher
  • Main

Interfaces

  • Bookable
  • Overview
  • Namespace
  • Class

Class Dispatcher

Class Dispatcher

Router for the booking service requests.

Namespace: SmsOrange
Package: SmsOrange
Located at Dispatcher.php
Methods summary
public
# __construct( SmsOrange\Bookable $service )

Dispatcher constructor.

Dispatcher constructor.

Parameters

$service
instance of Cruise or Tour
public mixed
# search( array $parameters )

Calls the injected service's search method.

Calls the injected service's search method.

Parameters

$parameters
search form

Returns

mixed
(\Unirest\Response object)
public mixed
# select( array $parameters )

Handles package selection by service.

Handles package selection by service.

Parameters

$parameters

Returns

mixed
(\Unirest\Response object)
public mixed
# getComponents( array $parameters )

Gets the components for a service.

Gets the components for a service.

Parameters

$parameters

Returns

mixed
(\Unirest\Response object)
public mixed
# getAvailableCategories( array $parameters )

Gets the available categories for a service.

Gets the available categories for a service.

Parameters

$parameters

Returns

mixed
(\Unirest\Response object)
public mixed
# getCabins( array $parameters )

Gets the cabins for a service.

Gets the cabins for a service.

Parameters

$parameters

Returns

mixed
(\Unirest\Response object)
public mixed
# getQuote( array $parameters )

Gets the price quote for a service.

Gets the price quote for a service.

Parameters

$parameters

Returns

mixed
(\Unirest\Response object)
public mixed
# holdCabin( array $parameters )

Holds the cabin for a service.

Holds the cabin for a service.

Parameters

$parameters

Returns

mixed
(\Unirest\Response object)
public mixed
# book( array $parameters )

Handles the final booking step by service.

Handles the final booking step by service.

Parameters

$parameters

Returns

mixed
(\Unirest\Response object)
API documentation generated by ApiGen