\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
No private properties found
N/A

Methods

__construct()

__construct(  apiVersion,   hostname,   user,   buildDateTime,   startDateTime,   dateTime,   databaseChecksum,   databaseChangeDateTime) : 

Constructor

Parameters

apiVersion

API version

hostname

Server hostname

user

Authenticated user name

buildDateTime

Server build date and time

startDateTime

Server startup date and time

dateTime

Current date and time

databaseChecksum

All database tables checksum

databaseChangeDateTime

Last database change date and time

Throws

\Iqrf\Repository\Entities\CorruptedData

Returns

fromArray()

fromArray(mixed|string|string|int  data) : \Iqrf\Repository\Entities\ServerStatus

Creates a new server status entity from an array

Parameters

mixed|string|string|int data

JSON data in an array

Throws

\Iqrf\Repository\Entities\CorruptedData

Returns

\Iqrf\Repository\Entities\ServerStatus —

Created server status entity

getApiVersion()

getApiVersion() : 

Returns the API version

Returns

API version

getHostname()

getHostname() : 

Returns the server hostname

Returns

Server hostname

getUser()

getUser() : 

Returns the authenticated user name

Returns

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() : 

Returns the all database tables checksum

Returns

All database tables checksum

getDatabaseChangeDateTime()

getDatabaseChangeDateTime() : \DateTime

Returns the last database change date and time

Returns

\DateTime —

Last database change date and time