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

21 lines
335 B
PHP
Raw Permalink Normal View History

<?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
];
}
}