nextcloud_groupfolder_files.../lib/Db/DiffTask.php

28 lines
663 B
PHP
Raw Normal View History

2023-09-02 02:41:17 +02:00
<?php
namespace OCA\GroupfolderFilesystemSnapshots\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
class DiffTask extends Entity implements JsonSerializable {
protected $userId;
protected $groupfolderId;
protected $snapshotId;
protected $timestamp;
public function __construct() {
$this->addType('id','integer');
$this->addType('groupfolderId','integer');
}
public function jsonSerialize() {
return [
'id' => $this->id,
'groupfolderId' => $this->groupfolderId,
'snapshotId' => $this->snapshotId,
'timestamp' => $this->timestamp,
];
}
}