class State extends Model implements ModelFactory

State

Constants

ACTIVE

INACTIVE

ACTIVATING

DEACTIVATING

FAILED

Properties

protected string $unitHash
protected string $machineID
protected string $name
protected string $systemdActiveState
protected string $systemdLoadState
protected string $systemdSubState

Methods

__construct(string $name)

__construct

string
getUnitHash()

getHash

string
getMachineID()

getMachineID

string
getName()

getName

string
getSystemdActiveState()

getSystemdActiveState

string
getSystemdLoadState()

getSystemdLoadState

string
getSystemdSubState()

getSystemdSubState

setUnitHash(string $hash)

setHash

setMachineID(string $machineID)

setMachineID

setName(string $name)

setName

setSystemdActiveState(string $systemdActiveState)

setSystemdActiveState

setSystemdLoadState(string $systemdLoadState)

setSystemdLoadState

setSystemdSubState(string $systemdSubState)

setSystemdSubState

static State
getInstanceFromArray(Array|ArrayHelper $array)

getInstanceFromArray

Details

at line 104
__construct(string $name)

__construct

Parameters

string $name Name

at line 115
string getUnitHash()

getHash

Return Value

string Hash

at line 124
string getMachineID()

getMachineID

Return Value

string Maschinen-ID

at line 133
string getName()

getName

Return Value

string Name

at line 142
string getSystemdActiveState()

getSystemdActiveState

Return Value

string

at line 151
string getSystemdLoadState()

getSystemdLoadState

Return Value

string

at line 160
string getSystemdSubState()

getSystemdSubState

Return Value

string

at line 171
State setUnitHash(string $hash)

setHash

Parameters

string $hash Hash

Return Value

State

at line 183
State setMachineID(string $machineID)

setMachineID

Parameters

string $machineID ID

Return Value

State

at line 195
State setName(string $name)

setName

Parameters

string $name Name

Return Value

State

at line 207
State setSystemdActiveState(string $systemdActiveState)

setSystemdActiveState

Parameters

string $systemdActiveState

Return Value

State

at line 219
State setSystemdLoadState(string $systemdLoadState)

setSystemdLoadState

Parameters

string $systemdLoadState

Return Value

State

at line 231
State setSystemdSubState(string $systemdSubState)

setSystemdSubState

Parameters

string $systemdSubState

Return Value

State

at line 243
static State getInstanceFromArray(Array|ArrayHelper $array)

getInstanceFromArray

Parameters

Array|ArrayHelper $array

Return Value

State