Core/CoreHelper.php
- Package
- Default
\CoreHelper
Package: Default



Helper class.
Methods

CheckNullResponseAndThrowException( $response) : voidstatic
Checks whether the reponse is null or empty and throws communication exception.
Parameters
| Name | Type | Description |
|---|---|---|
| $response |

GetCompressor( $serviceContext, $isRequest) : \IEntityCompressionstatic
Gets the compression mechanism using the service context and the depending on the request and response.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $serviceContext | ||
| $isRequest |
| Type | Description |
|---|---|
| \IEntityCompression | The Compression mechanism. |

GetRequestLogging( $serviceContext) : \LogRequestsToDiskstatic
Gets the Request Response Logging mechanism.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $serviceContext |
| Type | Description |
|---|---|
| \LogRequestsToDisk | Returns value which specifies the request response logging mechanism. |

GetSerializer( $serviceContext, $isRequest) : \IEntitySerializerstatic
Gets the serializer mechanism using the service context and the depending on the request and response.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $serviceContext | ||
| $isRequest |
| Type | Description |
|---|---|
| \IEntitySerializer | The Serializer mechanism. |