Method |
Description |
|
__construct ( Client $client ) |
Creates a cluster object. |
|
get ( ) : array |
Returns settings data. |
|
getClient ( ) : Client |
Get the client. |
|
getPersistent ( string $setting = '' ) : array | string | null |
Returns the current persistent settings of the cluster. |
|
getTransient ( string $setting = '' ) : array | string | null |
Returns the current transient settings of the cluster. |
|
request ( array $data = [], string $method = Request::GET ) : Response |
Sends settings request. |
|
set ( array $settings ) : Response |
Set settings for cluster. |
|
setPersistent ( string $key, string $value ) : Response |
Sets persistent setting. |
|
setReadOnly ( boolean $readOnly = true, boolean $persistent = false ) : Response |
Sets the cluster to read only. |
|
setTransient ( string $key, string $value ) : Response |
Sets transient settings. |
|