class Unit implements UnitInterface

This is main class of Nginx Unit manipulation

Methods

__construct(string $socket, string $address)

No description

getConfig()

No description

array
getCertificates()

No description

bool
uploadCertificate(string $path, string $certificateName)

No description

bool
removeCertificate(string $certificateName)

No description

string
getSocket()

No description

string
getAddress()

No description

CertificateInterface|null
getCertificate(string $certificateName)

No description

bool
uploadConfigFromFile(string $path)

No description

bool
removeConfig()

No description

Details

at line 43
__construct(string $socket, string $address)

No description

Parameters

string $socket
string $address

Exceptions

UnitException

at line 54
ConfigInterface getConfig()

No description

Return Value

ConfigInterface

Exceptions

UnitException

at line 78
array getCertificates()

No description

Return Value

array

at line 88
bool uploadCertificate(string $path, string $certificateName)

No description

Parameters

string $path
string $certificateName

Return Value

bool

at line 112
bool removeCertificate(string $certificateName)

No description

Parameters

string $certificateName

Return Value

bool

at line 138
string getSocket()

No description

Return Value

string

at line 146
string getAddress()

No description

Return Value

string

at line 154
StatisticsInterface getStatistics()

No description

Return Value

StatisticsInterface

at line 170
CertificateInterface|null getCertificate(string $certificateName)

No description

Parameters

string $certificateName

Return Value

CertificateInterface|null

at line 181
bool uploadConfigFromFile(string $path)

No description

Parameters

string $path

Return Value

bool

Exceptions

UnitException

at line 209
bool removeConfig()

No description

Return Value

bool