diff options
author | Robin Appelman <robin@icewind.nl> | 2023-07-13 15:36:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-13 15:36:51 +0200 |
commit | c988d782ebeb5e5df92c6e2b0f03fd0643db18a1 (patch) | |
tree | 469e148842db12dc33b944c8f483df4d7a0079a9 /lib/public | |
parent | c5a6c7e0dd9666cc8c550b616d13118616f67779 (diff) | |
parent | 1be836273ddba6e0ddb3509a1d898535df9fd169 (diff) | |
download | nextcloud-server-c988d782ebeb5e5df92c6e2b0f03fd0643db18a1.tar.gz nextcloud-server-c988d782ebeb5e5df92c6e2b0f03fd0643db18a1.zip |
Merge pull request #39331 from nextcloud/feature/openapi/core
core: Add OpenAPI spec
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Collaboration/Reference/Reference.php | 4 | ||||
-rw-r--r-- | lib/public/Translation/LanguageTuple.php | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/public/Collaboration/Reference/Reference.php b/lib/public/Collaboration/Reference/Reference.php index 6b92a0fae52..0dcb665713c 100644 --- a/lib/public/Collaboration/Reference/Reference.php +++ b/lib/public/Collaboration/Reference/Reference.php @@ -27,6 +27,7 @@ namespace OCP\Collaboration\Reference; /** * @since 25.0.0 + * @psalm-type OpenGraphObject = array{id: string, name: string, description: ?string, thumb: ?string, link: string} */ class Reference implements IReference { protected string $reference; @@ -176,6 +177,7 @@ class Reference implements IReference { /** * @inheritdoc * @since 25.0.0 + * @return array<string, mixed> */ public function getRichObject(): array { if ($this->richObject === null) { @@ -187,6 +189,7 @@ class Reference implements IReference { /** * @inheritdoc * @since 25.0.0 + * @return OpenGraphObject */ public function getOpenGraphObject(): array { return [ @@ -237,6 +240,7 @@ class Reference implements IReference { /** * @inheritdoc * @since 25.0.0 + * @return array{richObjectType: string, richObject: array<string, mixed>, openGraphObject: OpenGraphObject, accessible: bool} */ public function jsonSerialize() { return [ diff --git a/lib/public/Translation/LanguageTuple.php b/lib/public/Translation/LanguageTuple.php index 9defb17e4b6..27f932f0a64 100644 --- a/lib/public/Translation/LanguageTuple.php +++ b/lib/public/Translation/LanguageTuple.php @@ -45,6 +45,7 @@ class LanguageTuple implements JsonSerializable { /** * @since 26.0.0 + * @return array{from: string, fromLabel: string, to: string, toLabel: string} */ public function jsonSerialize(): array { return [ |