\Iqrf\Repository\EntitiesServerStatus

Server status entity

Summary

Methods
Properties
Constants
__construct()
fromArray()
getApiVersion()
getHostname()
getUser()
getBuildDateTime()
getStartDateTime()
getDateTime()
getDatabaseChecksum()
getDatabaseChangeDateTime()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$apiVersion
$hostname
$user
$buildDateTime
$startDateTime
$dateTime
$databaseChecksum
$databaseChangeDateTime
N/A

Properties

$apiVersion

$apiVersion : int

Type

int — API version

$hostname

$hostname : string

Type

string — Server hostname

$user

$user : string

Type

string — Authenticated user name

$buildDateTime

$buildDateTime : \DateTime

Type

\DateTime — Server build date and time

$startDateTime

$startDateTime : \DateTime

Type

\DateTime — Server startup date and time

$dateTime

$dateTime : \DateTime

Type

\DateTime — Current date and time

$databaseChecksum

$databaseChecksum : int

Type

int — All database tables checksum

$databaseChangeDateTime

$databaseChangeDateTime : \DateTime

Type

\DateTime — Last database change date and time

Methods

__construct()

__construct(int  $apiVersion, string  $hostname, string  $user, string  $buildDateTime, string  $startDateTime, string  $dateTime, int  $databaseChecksum, string  $databaseChangeDateTime) : mixed

Constructor

Parameters

int $apiVersion

API version

string $hostname

Server hostname

string $user

Authenticated user name

string $buildDateTime

Server build date and time

string $startDateTime

Server startup date and time

string $dateTime

Current date and time

int $databaseChecksum

All database tables checksum

string $databaseChangeDateTime

Last database change date and time

Throws

\Iqrf\Repository\Exceptions\CorruptedData

Returns

mixed —

fromArray()

fromArray(array<string,int|string>  $data) : \Iqrf\Repository\Entities\ServerStatus

Creates a new server status entity from an array

Parameters

array $data

JSON data in an array

Throws

\Iqrf\Repository\Exceptions\CorruptedData

Returns

\Iqrf\Repository\Entities\ServerStatus —

Created server status entity

getApiVersion()

getApiVersion() : int

Returns the API version

Returns

int —

API version

getHostname()

getHostname() : string

Returns the server hostname

Returns

string —

Server hostname

getUser()

getUser() : string

Returns the authenticated user name

Returns

string —

Authenticated user name

getBuildDateTime()

getBuildDateTime() : \DateTime

Returns the server build date and time

Returns

\DateTime —

Server build date and time

getStartDateTime()

getStartDateTime() : \DateTime

Returns the server startup date and time

Returns

\DateTime —

Server startup date and time

getDateTime()

getDateTime() : \DateTime

Returns the current date and time

Returns

\DateTime —

Current date and time

getDatabaseChecksum()

getDatabaseChecksum() : int

Returns the all database tables checksum

Returns

int —

All database tables checksum

getDatabaseChangeDateTime()

getDatabaseChangeDateTime() : \DateTime

Returns the last database change date and time

Returns

\DateTime —

Last database change date and time