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

31 lines
761 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 $relativePath;
2023-09-02 02:41:17 +02:00
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,
2023-09-02 02:41:17 +02:00
'groupfolderId' => $this->groupfolderId,
'relativePath' => $this->relativePath,
2023-09-02 02:41:17 +02:00
'snapshotId' => $this->snapshotId,
'timestamp' => $this->timestamp,
];
}
}