$apiVersion
$apiVersion : int
Server status entity
__construct(int $apiVersion, string $hostname, string $user, \DateTime $buildDateTime, \DateTime $startDateTime, \DateTime $dateTime, int $databaseChecksum, \DateTime $databaseChangeDateTime) : mixed
Constructor
| int | $apiVersion | API version |
| string | $hostname | Server hostname |
| string | $user | Authenticated user name |
| \DateTime | $buildDateTime | Server build date and time |
| \DateTime | $startDateTime | Server startup date and time |
| \DateTime | $dateTime | Current date and time |
| int | $databaseChecksum | All database tables checksum |
| \DateTime | $databaseChangeDateTime | Last database change date and time |
fromApiResponse(array{apiVersion: int, hostname: string, user: string, buildDateTime: string, startDateTime: string, dateTime: string, databaseChecksum: int, databaseChangeDateTime: string} $response) : \Iqrf\Repository\Entities\ServerStatus
Creates a new server status entity from the API response
| array{apiVersion: int, hostname: string, user: string, buildDateTime: string, startDateTime: string, dateTime: string, databaseChecksum: int, databaseChangeDateTime: string} | $response | API response body |
Thrown when the API response data are corrupted
Created server status entity
jsonSerialize() : array{apiVersion: int, hostname: string, user: string, buildDateTime: string, startDateTime: string, dateTime: string, databaseChecksum: int, databaseChangeDateTime: string}
Serializes the server status entity into JSON
JSON serialized server status entity