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



Helper class.
Methods


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


GetCompressor( $serviceContext, $isRequest) : \IEntityCompression
static
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) : \LogRequestsToDisk
static
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) : \IEntitySerializer
static
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. |