SDKWrapperMocker
extends SDKWrapper
in package
Tags
Table of Contents
- $_caches : array<string|int, mixed>
- $_callbacksAfterSend : array<string|int, mixed>
- $_encrypter : SymmetricEncryption
- $_pSDK : onOfficeSDK
- $_pWPOptionWrapper : WPOptionWrapperDefault
- $_requests : array<string|int, mixed>
- $_requestSent : bool
- $_responses : array<string|int, mixed>
- __clone() : mixed
- __construct() : mixed
- addFullRequest() : int
- addRequestByApiAction() : int
- addResponseByApiAction() : mixed
- addResponseByParameters() : mixed
- getCache() : array<string|int, DBCache>
- getRequestArray() : array<string|int, mixed>
- For Debug purposes only
- getResponseArray() : array<string|int, mixed>
- For Debug purposes only
- getSDK() : onOfficeSDK
- getWPOptionWrapper() : WPOptionWrapperBase
- sendRequests() : mixed
- withCurlOptions() : SDKWrapper
- getRequestResponse() : array<string|int, mixed>
- stringifyRequest() : string
Properties
$_caches
private
array<string|int, mixed>
$_caches
= []
$_callbacksAfterSend
private
array<string|int, mixed>
$_callbacksAfterSend
= []
$_encrypter
private
SymmetricEncryption
$_encrypter
$_pSDK
private
onOfficeSDK
$_pSDK
= null
$_pWPOptionWrapper
private
WPOptionWrapperDefault
$_pWPOptionWrapper
= null
$_requests
private
array<string|int, mixed>
$_requests
= []
$_requestSent
private
bool
$_requestSent
= false
$_responses
private
array<string|int, mixed>
$_responses
= []
Methods
__clone()
public
__clone() : mixed
Return values
mixed —__construct()
public
__construct() : mixed
Return values
mixed —addFullRequest()
public
addFullRequest(string $actionId, string $resourceType, string $resourceId[, array<string|int, mixed> $parameters = [] ][, string $identifier = null ]) : int
Parameters
- $actionId : string
- $resourceType : string
- $resourceId : string
- $parameters : array<string|int, mixed> = []
- $identifier : string = null
Return values
int —addRequestByApiAction()
public
addRequestByApiAction(APIClientActionGeneric $pApiAction) : int
Parameters
- $pApiAction : APIClientActionGeneric
Return values
int —addResponseByApiAction()
public
addResponseByApiAction(APIClientActionGeneric $pApiAction, array<string|int, mixed> $response) : mixed
Parameters
- $pApiAction : APIClientActionGeneric
- $response : array<string|int, mixed>
Return values
mixed —addResponseByParameters()
public
addResponseByParameters(string $actionId, string $resourceType, string $resourceId, array<string|int, mixed> $parameters, string $identifier, array<string|int, mixed> $response) : mixed
Parameters
- $actionId : string
- $resourceType : string
- $resourceId : string
- $parameters : array<string|int, mixed>
- $identifier : string
- $response : array<string|int, mixed>
Return values
mixed —getCache()
public
getCache() : array<string|int, DBCache>
Return values
array<string|int, DBCache> —getRequestArray()
For Debug purposes only
public
getRequestArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —getResponseArray()
For Debug purposes only
public
getResponseArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —getSDK()
public
getSDK() : onOfficeSDK
Return values
onOfficeSDK —getWPOptionWrapper()
public
getWPOptionWrapper() : WPOptionWrapperBase
Return values
WPOptionWrapperBase —sendRequests()
public
sendRequests() : mixed
Return values
mixed —withCurlOptions()
public
withCurlOptions(array<string|int, mixed> $curlOptions) : SDKWrapper
Parameters
- $curlOptions : array<string|int, mixed>
Return values
SDKWrapper —getRequestResponse()
private
getRequestResponse(int $handle) : array<string|int, mixed>
Parameters
- $handle : int
Return values
array<string|int, mixed> —stringifyRequest()
private
stringifyRequest(string $actionId, string $resourceType, string $resourceId, array<string|int, mixed> $parameters, string $identifier) : string
Parameters
- $actionId : string
- $resourceType : string
- $resourceId : string
- $parameters : array<string|int, mixed>
- $identifier : string