class Port

Properties

protected string $name
protected int $type
protected string $host
protected int $port
protected int $sockType
protected array $callbacks
protected array $settings

Methods

static Port
build(array $config)

Build a port instance from a configuration array.

string
getName()

Get the server name.

setName(string $name)

Set the server name.

int
getType()

Get the server type.

setType(int $type)

Set the server type.

string
getHost()

Get the server host.

setHost(string $host)

Set the server host.

int
getPort()

Get the server port.

setPort(int $port)

Set the server port.

int
getSockType()

Get the socket type.

setSockType(int $sockType)

Set the socket type.

array
getCallbacks()

Get the server callbacks.

setCallbacks(array $callbacks)

Set the server callbacks.

array
getSettings()

Get the server settings.

setSettings(array $settings)

Set the server settings.

Details

at line 29
static Port build(array $config)

Build a port instance from a configuration array.

Parameters

array $config

Return Value

Port

at line 48
string getName()

Get the server name.

Return Value

string

at line 56
Port setName(string $name)

Set the server name.

Parameters

string $name

Return Value

Port

at line 65
int getType()

Get the server type.

Return Value

int

at line 73
Port setType(int $type)

Set the server type.

Parameters

int $type

Return Value

Port

at line 82
string getHost()

Get the server host.

Return Value

string

at line 90
Port setHost(string $host)

Set the server host.

Parameters

string $host

Return Value

Port

at line 99
int getPort()

Get the server port.

Return Value

int

at line 107
Port setPort(int $port)

Set the server port.

Parameters

int $port

Return Value

Port

at line 116
int getSockType()

Get the socket type.

Return Value

int

at line 124
Port setSockType(int $sockType)

Set the socket type.

Parameters

int $sockType

Return Value

Port

at line 133
array getCallbacks()

Get the server callbacks.

Return Value

array

at line 141
Port setCallbacks(array $callbacks)

Set the server callbacks.

Parameters

array $callbacks

Return Value

Port

at line 150
array getSettings()

Get the server settings.

Return Value

array

at line 158
Port setSettings(array $settings)

Set the server settings.

Parameters

array $settings

Return Value

Port