class Config

Configuration for a simple pool.

Properties

protected callable $callback

Methods

__construct(string $name, callable $callback, array $option)

No description

string
getName()

No description

setName(string $name)

Set the pool name.

callable
getCallback()

No description

setCallback(callable $callback)

Set the connection-creation callback.

array
getOption()

No description

setOption(array $option)

Set the pool option array.

Details

at line 20
__construct(string $name, callable $callback, array $option)

No description

Parameters

string $name
callable $callback
array $option

at line 28
string getName()

No description

Return Value

string

at line 40
Config setName(string $name)

Set the pool name.

Boot-only. The value persists on the worker-lifetime SimplePool config and is captured by the Pool on its first resolution. Per-request use races across coroutines.

Parameters

string $name

Return Value

Config

at line 47
callable getCallback()

No description

Return Value

callable

at line 59
Config setCallback(callable $callback)

Set the connection-creation callback.

Boot-only. The callback persists on the worker-lifetime SimplePool config and is captured by the Pool on its first resolution. Per-request use races across coroutines.

Parameters

callable $callback

Return Value

Config

at line 69
array getOption()

No description

Return Value

array

at line 83
Config setOption(array $option)

Set the pool option array.

Boot-only. The value persists on the worker-lifetime SimplePool config and is captured by the Pool on its first resolution. Per-request use races across coroutines.

Parameters

array $option

Return Value

Config