Class shardimage\shardimagephpapi\services\Client

Inheritanceshardimage\shardimagephpapi\services\Client » shardimage\shardimagephpapi\services\BaseService » shardimage\shardimagephpapi\base\BaseObject
Subclassesshardimage\shardimagephp\auth\ClientService

Client service.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Creates the object, populates the properties and calls the "init" method. shardimage\shardimagephpapi\base\BaseObject
__get() Returns the value of a non-defined property, it there is a getter method. shardimage\shardimagephpapi\base\BaseObject
__isset() Does the non-defined property with a getter exist and is it not NULL? shardimage\shardimagephpapi\base\BaseObject
__set() Sets the value of a non-defined property, if there is a setter method. shardimage\shardimagephpapi\base\BaseObject
__unset() Sets the value of a non-defined property to NULL, if there is a setter. shardimage\shardimagephpapi\base\BaseObject
buildCustomHeader() Builds a custom header (e.g. X-Some-Header). shardimage\shardimagephpapi\services\BaseService
getResourceHandler() Returns whether the provided value is file. shardimage\shardimagephpapi\services\BaseService
init() Initializes the client data. shardimage\shardimagephpapi\services\Client
log() Logs an event. shardimage\shardimagephpapi\services\BaseService
parseCustomHeader() shardimage\shardimagephpapi\services\BaseService
toArray() Converts the object an array. shardimage\shardimagephpapi\base\BaseObject

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
ensureClass() Creates an object from the given parameters. shardimage\shardimagephpapi\base\BaseObject

Property Details

$authData public property

Authentication class

public string $authData = \shardimage\shardimagephpapi\api\auth\NullAuthData::class
$cache public property
$cacheExpiration public property
$customHeaders public property

Custom HTTP headers (x-...)

public array $customHeaders = []
$headers public property

Additional HTTP headers

public array $headers = []
$proxy public property

Proxy or an array of proxies per protocol

public string|array $proxy null
$useGzip public property

Compression support

public \shardimage\shardimagephpapi\services\Gzip $useGzip true
$useMsgPack public property

MsgPack support

public boolean $useMsgPack true

Method Details

init() public method

Initializes the client data.

public void init ( )
throws shardimage\shardimagephpapi\base\exceptions\InvalidConfigException