\Iqrf\Repository\EntitiesFiles

Files entity

Summary

Methods
Properties
Constants
__construct()
fromArray()
getTimestamp()
getVersion()
getFiles()
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(  timestamp,   version, \Iqrf\Repository\Entities\File||string|int  files) : 

Constructor

Parameters

timestamp

Timestamp

version

Format version

\Iqrf\Repository\Entities\File||string|int files

Array of files

Returns

fromArray()

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

Creates a new files entity from an array

Parameters

mixed|string|string|int data

JSON data in an array

Returns

\Iqrf\Repository\Entities\Files —

Files entity

getTimestamp()

getTimestamp() : \DateTime

Returns the timestamp

Returns

\DateTime —

Timestamp

getVersion()

getVersion() : 

Returns the format version

Returns

Format version

getFiles()

getFiles() : \Iqrf\Repository\Entities\File||string|int

Returns the array of files

Returns

\Iqrf\Repository\Entities\File||string|int —

Array of files