PHP Class Ondrejnov\EET\Dispatcher

Afficher le fichier Open project: ondrejnov/eet Class Usage Examples

Méthodes publiques

Свойство Type Description
$trace boolean

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

check() public méthode

public check ( Receipt $receipt ) : boolean | string
$receipt Receipt
Résultat boolean | string

getCheckCodes() public méthode

public getCheckCodes ( Receipt $receipt ) : array
$receipt Receipt
Résultat array

getConnectionTime() public méthode

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

getLastRequestSize() public méthode

public getLastRequestSize ( ) : integer
Résultat integer

getLastResponseSize() public méthode

public getLastResponseSize ( ) : integer
Résultat integer

getLastResponseTime() public méthode

public getLastResponseTime ( ) : float
Résultat float time in ms

getSoapClient() public méthode

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

prepareData() public méthode

public prepareData ( $receipt, $check = FALSE )

send() public méthode

public send ( Receipt $receipt, boolean $check = FALSE ) : boolean | string
$receipt Receipt
$check boolean
Résultat boolean | string

Property Details

$trace public_oe property

public bool $trace
Résultat boolean