Method |
Description |
|
__construct ( array $params = [] ) |
Creates a new connection object. A connection is enabled by default. |
|
addConfig ( string $key, mixed $value ) |
|
|
create ( Connection | array $params = [] ) : self |
|
|
getConfig ( string $key = '' ) : array | string |
Returns a specific config key or the whole
config array if not set. |
|
getConnectTimeout ( ) : integer |
|
|
getHost ( ) : string |
|
|
getPassword ( ) : string |
|
|
getPath ( ) : string |
|
|
getPort ( ) : integer |
|
|
getProxy ( ) : string | null |
|
|
getTimeout ( ) : integer |
|
|
getTransport ( ) : string | array |
|
|
getTransportObject ( ) : AbstractTransport |
Returns an instance of the transport type. |
|
getUsername ( ) : string |
|
|
hasCompression ( ) : boolean |
|
|
hasConfig ( string $key ) : boolean |
|
|
isEnabled ( ) : boolean |
|
|
isPersistent ( ) : boolean |
|
|
setCompression ( boolean $compression = null ) |
|
|
setConfig ( array $config ) |
|
|
setConnectTimeout ( integer $timeout ) |
Number of seconds after a connection timeout occurs for every request during the connection phase. |
|
setEnabled ( boolean $enabled = true ) |
Enables a connection. |
|
setHost ( string $host ) |
|
|
setPath ( string $path ) |
|
|
setPort ( integer $port ) |
|
|
setProxy ( string | null $proxy ) |
Set proxy for http connections. Null is for environmental proxy,
empty string to disable proxy and proxy string to set actual http proxy. |
|
setTimeout ( integer $timeout ) |
|
|
setTransport ( string | array $transport ) |
|
|