PHP Class Ondrejnov\EET\Dispatcher

Mostrar archivo Open project: ondrejnov/eet Class Usage Examples

Public Properties

Property Type Description
$trace boolean

Public Methods

Method Description
__construct ( $service, string $key, string $cert )
check ( Receipt $receipt ) : boolean | string
getCheckCodes ( Receipt $receipt ) : array
getConnectionTime ( boolean $tillLastRequest = FALSE ) : float
getLastRequestSize ( ) : integer
getLastResponseSize ( ) : integer
getLastResponseTime ( ) : float
getSoapClient ( ) : SoapClient Get (or if not exists: initialize and get) SOAP client.
prepareData ( $receipt, $check = FALSE )
send ( Receipt $receipt, boolean $check = FALSE ) : boolean | string

Private Methods

Method Description
checkRequirements ( ) : void
initSoapClient ( ) : void Require to initialize a new SOAP client for a new request.
processData ( Receipt $receipt, boolean $check = FALSE ) : object
processError ( $error )
throwTraceNotEnabled ( )

Method Details

__construct() public method

public __construct ( $service, string $key, string $cert )
$key string
$cert string

check() public method

public check ( Receipt $receipt ) : boolean | string
$receipt Receipt
return boolean | string

getCheckCodes() public method

public getCheckCodes ( Receipt $receipt ) : array
$receipt Receipt
return array

getConnectionTime() public method

public getConnectionTime ( boolean $tillLastRequest = FALSE ) : float
$tillLastRequest boolean optional If not set/FALSE connection time till now is returned.
return float

getLastRequestSize() public method

public getLastRequestSize ( ) : integer
return integer

getLastResponseSize() public method

public getLastResponseSize ( ) : integer
return integer

getLastResponseTime() public method

public getLastResponseTime ( ) : float
return float time in ms

getSoapClient() public method

Get (or if not exists: initialize and get) SOAP client.
public getSoapClient ( ) : SoapClient
return SoapClient

prepareData() public method

public prepareData ( $receipt, $check = FALSE )

send() public method

public send ( Receipt $receipt, boolean $check = FALSE ) : boolean | string
$receipt Receipt
$check boolean
return boolean | string

Property Details

$trace public_oe property

public bool $trace
return boolean