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

31 lines
761 B
PHP

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