SuccessRequestEvent
extends AbstractRequestEvent
in package
Class SuccessRequestEvent
Tags
Table of Contents
Methods
- __construct() : mixed
- SuccessRequestEvent constructor.
- getApiDomain() : string
- Returns RetailCRM domain for request.
- getApiKey() : string
- Returns API key for request in the event.
- getApiUrl() : string
- Returns RetailCRM URL for request in the event without trailing slash.
- getRequest() : RequestInterface
- Returns a request for which an event was thrown.
- getResponse() : ResponseInterface|null
- Returns a response for which an event was thrown.
- getResponseArray() : array<int|string, mixed>
- Returns a response array. It will be present only if custom request was used.
- getResponseModel() : ResponseInterface|null
Methods
__construct()
SuccessRequestEvent constructor.
public
__construct(string $baseUrl, RequestInterface $request, ResponseInterface $response, ResponseInterface|null $responseModel[, array<int|string, mixed> $responseArray = [] ]) : mixed
Parameters
- $baseUrl : string
- $request : RequestInterface
- $response : ResponseInterface
- $responseModel : ResponseInterface|null
- $responseArray : array<int|string, mixed> = []
getApiDomain()
Returns RetailCRM domain for request.
public
getApiDomain() : string
Return values
stringgetApiKey()
Returns API key for request in the event.
public
getApiKey() : string
Return values
stringgetApiUrl()
Returns RetailCRM URL for request in the event without trailing slash.
public
getApiUrl() : string
Return values
stringgetRequest()
Returns a request for which an event was thrown.
public
getRequest() : RequestInterface
Return values
RequestInterfacegetResponse()
Returns a response for which an event was thrown.
public
getResponse() : ResponseInterface|null
Return values
ResponseInterface|nullgetResponseArray()
Returns a response array. It will be present only if custom request was used.
public
getResponseArray() : array<int|string, mixed>
Return values
array<int|string, mixed>getResponseModel()
public
getResponseModel() : ResponseInterface|null