nextcloud_groupfolder_files.../lib/Entity/Snapshot.php

20 lines
335 B
PHP

<?php
namespace OCA\GroupfolderFilesystemSnapshots\Entity;
use JsonSerializable;
class Snapshot implements JsonSerializable {
/** @var string */
private $id;
public function __construct(string $id) {
$this->id = $id;
}
public function jsonSerialize(): mixed {
return [
'id' => $this->id
];
}
}