class Upstream implements UpstreamInterface

Traits

Methods

void
setListener(Listener $listener)

Setup new listener

array
getListeners()

Get listeners linked to object;

bool
hasListeners()

Check if listeners are empty or not

__construct(string $_name, array $data = [])

No description

string
getName()

No description

void
setServer(string $ip, int $weight = 1)

No description

array
getServers()

No description

array
toArray()

No description

string|false
toJson()

No description

Details

in HasListeners at line 17
void setListener(Listener $listener)

Setup new listener

Parameters

Listener $listener

Return Value

void

in HasListeners at line 27
array getListeners()

Get listeners linked to object;

Return Value

array

in HasListeners at line 37
bool hasListeners()

Check if listeners are empty or not

Return Value

bool

at line 19
__construct(string $_name, array $data = [])

No description

Parameters

string $_name
array $data

at line 33
string getName()

No description

Return Value

string

at line 52
void setServer(string $ip, int $weight = 1)

No description

Parameters

string $ip
int $weight

Return Value

void

Exceptions

UnitException

at line 70
array getServers()

No description

Return Value

array

at line 75
array toArray()

No description

Return Value

array

at line 85
string|false toJson()

No description

Return Value

string|false