FgcCaller

Implements \EasyTransac\Core\ICaller

Caller using file_get_contents

author

klyde

package

Default

Methods

__construct

__construct() 

Add headers to the headers list

addHeaders(array $headers) 
see \EasyTransac\Core\ICaller::addHeaders()

Arguments

$headers

array

Launch a call and return the result if there is no error

call(String $url, array $params = array()) 
see \EasyTransac\Core\ICaller::call()

Arguments

$url

String

$params

array

Returns headers

getHeaders() : array

Return true if this caller method is available

isAvailable() 

Returns true is available

isTLSv12Available() 
see \EasyTransac\Core\ICaller::isTLS12()

Defines the headers for calls

setHeaders(array $headers) 
see \EasyTransac\Core\ICaller::setHeaders()

Arguments

$headers

array

Defines the timeout of the request

setTimeout( $second) 

Properties

timeout

timeout : 

Type(s)

headers

headers : 

Type(s)