abstract class SlimCD implements SlimCD

Class SlimCD.

Properties

string $transactionUrl Transaction URL.
string $statsURL Stats URL.
bool $debug Whether or not debug mode is on. Default is off.
protected $send Data to send.
protected $receive Data that is received.
protected int $defaultTimeout Curl timeout.
protected bool $verifyPeer Curl Verify Peer.

Methods

object
buildError($url, $errorMessage)

Create an error using the URL and error message.

mixed|object
httpPost($urlString, $timeout, $nameValueArray)

Use curl to POST the request to SlimCd.

int
getTimeout($timeout)

Get current timeout value from property.

string
getVersion()

Get the current version of the client.

setVerifyPeer($verifyPeer)

You can disable verify peer, but it is not recommended.

Details

at line 73
protected object buildError($url, $errorMessage)

Create an error using the URL and error message.

Parameters

$url
$errorMessage

Return Value

object

at line 100
protected mixed|object httpPost($urlString, $timeout, $nameValueArray)

Use curl to POST the request to SlimCd.

Parameters

$urlString
$timeout
$nameValueArray

Return Value

mixed|object

Exceptions

Exception

at line 181
protected int getTimeout($timeout)

Get current timeout value from property.

Parameters

$timeout

Return Value

int

at line 197
string getVersion()

Get the current version of the client.

Return Value

string

at line 207
setVerifyPeer($verifyPeer)

You can disable verify peer, but it is not recommended.

Parameters

$verifyPeer