IQRF PHP service manager

ServiceState
in package
implements JsonSerializable

Service state entity

Table of Contents

Interfaces

JsonSerializable

Properties

$active  : bool|null
$enabled  : bool|null
$name  : string
$status  : string|null

Methods

__construct()  : mixed
Constructor
jsonSerialize()  : array{name: string, enabled: bool|null, active: bool|null, status: string|null}
Serializes service state into JSON

Properties

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


        
On this page

Search results