diff options
author | Elizabeth Danzberger <lizzy7128@tutanota.de> | 2024-07-24 19:41:52 -0400 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2024-07-25 11:11:41 +0200 |
commit | bb34b0809c22bba1e83b99444e1007824221974b (patch) | |
tree | 0917e44bdccb1f087515cb4742f2d163e1f4e294 /lib/public/Files/Template/Field.php | |
parent | 6aea44920d9753cbb0c0a38e752cf2eceada7d03 (diff) | |
download | nextcloud-server-bb34b0809c22bba1e83b99444e1007824221974b.tar.gz nextcloud-server-bb34b0809c22bba1e83b99444e1007824221974b.zip |
fix: Fix static analysis errors
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
Diffstat (limited to 'lib/public/Files/Template/Field.php')
-rw-r--r-- | lib/public/Files/Template/Field.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/public/Files/Template/Field.php b/lib/public/Files/Template/Field.php index ea200b74a00..49c6a033e5c 100644 --- a/lib/public/Files/Template/Field.php +++ b/lib/public/Files/Template/Field.php @@ -7,6 +7,9 @@ namespace OCP\Files\Template; +/** + * @since 30.0.0 + */ class Field implements \JsonSerializable { private string $index; private string $content; @@ -15,6 +18,16 @@ class Field implements \JsonSerializable { private ?int $id; private ?string $tag; + /** + * @param string $index + * @param string $content + * @param FieldType $type + * @param ?string $alias + * @param ?int $id + * @param ?string $tag + * + * @since 30.0.0 + */ public function __construct($index, $content, $type, $alias = null, $id = null, $tag = null) { $this->index = $index; $this->alias = $alias; @@ -29,6 +42,11 @@ class Field implements \JsonSerializable { } } + /** + * @return array + * + * @since 30.0.0 + */ public function jsonSerialize(): array { return [ "index" => $this->index, |