ServiceState
in package
implements
JsonSerializable
Service state entity
Table of Contents
Interfaces
- JsonSerializable
Properties
Methods
- __construct() : mixed
- Constructor
- jsonSerialize() : array{name: string, enabled: bool|null, active: bool|null, status: string|null}
- Serializes service state into JSON
Properties
$active read-only
public
bool|null
$active
$enabled read-only
public
bool|null
$enabled
$name read-only
public
string
$name
$status read-only
public
string|null
$status
= null
Methods
__construct()
Constructor
public
__construct(string $name, bool|null $enabled, bool|null $active[, string|null $status = null ]) : mixed
Parameters
- $name : string
-
Service name
- $enabled : bool|null
-
Is service enabled?
- $active : bool|null
-
Is service active?
- $status : string|null = null
-
Service status
jsonSerialize()
Serializes service state into JSON
public
jsonSerialize() : array{name: string, enabled: bool|null, active: bool|null, status: string|null}
Return values
array{name: string, enabled: bool|null, active: bool|null, status: string|null} —JSON serialized service state