diff options
author | jld3103 <jld3103yt@gmail.com> | 2023-06-14 14:43:41 +0200 |
---|---|---|
committer | jld3103 <jld3103yt@gmail.com> | 2023-07-12 09:06:10 +0200 |
commit | 259264b966b3fde0cfcfb44e8047206c58917268 (patch) | |
tree | 056ac7957938aa04f4494beddb9a047c4af11484 /lib/public | |
parent | 46284f1696700c2553d8d2f5340ad3bcbad08470 (diff) | |
download | nextcloud-server-259264b966b3fde0cfcfb44e8047206c58917268.tar.gz nextcloud-server-259264b966b3fde0cfcfb44e8047206c58917268.zip |
files: Add OpenAPI spec
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Files/Template/TemplateFileCreator.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/public/Files/Template/TemplateFileCreator.php b/lib/public/Files/Template/TemplateFileCreator.php index 3a1e62c6f5c..43e96b6f21b 100644 --- a/lib/public/Files/Template/TemplateFileCreator.php +++ b/lib/public/Files/Template/TemplateFileCreator.php @@ -31,10 +31,13 @@ namespace OCP\Files\Template; */ final class TemplateFileCreator implements \JsonSerializable { protected $appId; + /** @var string[] $mimetypes */ protected $mimetypes = []; protected $actionName; protected $fileExtension; + /** @var ?string $iconClass */ protected $iconClass; + /** @var ?float $ratio */ protected $ratio = null; protected $order = 100; /** @@ -124,6 +127,7 @@ final class TemplateFileCreator implements \JsonSerializable { /** * @since 21.0.0 + * @return array{app: string, label: string, extension: string, iconClass: ?string, mimetypes: string[], ratio: ?float, actionLabel: string} */ public function jsonSerialize(): array { return [ |