Services

Singleton, allows to call EasyTransac API with API key

author

Klyde

copyright

EasyTransac

package

Default

Methods

Clone not available for this singleton

__clone() 

Init the base caller

__construct() 

Destruct, kill the caller

__destruct() 

Calls the specified EasyTransac function

call(String $funcName, array &$params) : String
throws

Arguments

$funcName

String

$params

array

Response

String

Get the caller

getCaller() : \EasyTransac\Core\ICaller

Returns the single instance of the Services class

getInstance() : \EasyTransac\Core\Services
static

Returns the current modifier

getModifier() : \EasyTransac\Core\ICallerModifier

Returns if debug mode is active

isDebug() : Boolean

Response

Boolean

Defines the API key

provideAPIKey(String $key) : \EasyTransac\Core\Services

Arguments

$key

String

Response

\EasyTransac\Core\Services

Remove the current caller

removeCaller() : \EasyTransac\Core\Services

Remove the current Modifier

removeModifier() : \EasyTransac\Core\Services

Defines the caller

setCaller(\EasyTransac\Core\ICaller $caller) : \EasyTransac\Core\Services

Defines the debug mode

setDebug(Boolean $debugMode) : \EasyTransac\Core\Services

Arguments

$debugMode

Boolean

Response

\EasyTransac\Core\Services

Add a modifier for the caller

setModifier(\EasyTransac\Core\ICallerModifier $modifier) : \EasyTransac\Core\Services

Defines the time out of the request

setRequestTimeout(integer $timeout) : \EasyTransac\Core\Services

Arguments

$timeout

integer

Response

\EasyTransac\Core\Services

Set the url for the request

setUrl(String $url) : \EasyTransac\Core\Services

Arguments

$url

String

Response

\EasyTransac\Core\Services

Properties

instance

instance : 
static

Type(s)

key

key : 

Type(s)

caller

caller : 

Type(s)

modifier

modifier : 

Type(s)

url

url : 

Type(s)

timeout

timeout : 

Type(s)