class Listener

This class presents "listeners" section from config

Methods

__construct(string $_listener, string $pass, Tls|null $_tls = null, Forwarded|null $_forwarded = null)

No description

string
getLink()

Get link

int
getPort()

Get port

array
getForwarded()

Get forwarded

getPass()

Get pass

array
getTls()

Get tls section

mixed
getListener()

Get listener

parseFromArray(array $data)

Parse data from array

array
toArray()

Return listener as array

void
setTls(Tls|null $tls)

No description

void
setForwarded(Forwarded|null $forwarded)

No description

string|false
toJson()

Return Listener as JSON

Details

at line 32
__construct(string $_listener, string $pass, Tls|null $_tls = null, Forwarded|null $_forwarded = null)

No description

Parameters

string $_listener
string $pass
Tls|null $_tls
Forwarded|null $_forwarded

Get link

Return Value

string

at line 82
int getPort()

Get port

Return Value

int

at line 92
array getForwarded()

Get forwarded

Return Value

array

at line 102
ListenerPass getPass()

Get pass

Return Value

ListenerPass

at line 112
array getTls()

Get tls section

Return Value

array

at line 122
mixed getListener()

Get listener

Return Value

mixed

at line 132
Listener parseFromArray(array $data)

Parse data from array

Parameters

array $data

Return Value

Listener

Exceptions

UnitException

at line 154
array toArray()

Return listener as array

Return Value

array

at line 174
void setTls(Tls|null $tls)

No description

Parameters

Tls|null $tls

Return Value

void

at line 182
void setForwarded(Forwarded|null $forwarded)

No description

Parameters

Forwarded|null $forwarded

Return Value

void

at line 192
string|false toJson()

Return Listener as JSON

Return Value

string|false