__construct() __construct(string $name, int $size, int $date, string $sha256) : mixed Constructor Parameters string $name File name int $size File size int $date File creation date string $sha256 SHA256 hash of the file Returns mixed —
fromArray() fromArray(array<string,int|string> $data) : \Iqrf\Repository\Entities\File Creates a new file entity from an array Parameters array $data JSON data in an array Returns \Iqrf\Repository\Entities\File — File entity
getDate() getDate() : \DateTime Returns the file creation date Returns \DateTime — File creation date
getSha256() getSha256() : string Returns the SHA256 hash of the file Returns string — SHA256 hash of the file
jsonSerialize() jsonSerialize() : array<string,int|string> Serializes the File entity into JSON Returns array — JSON serialized File entity