diff options
Diffstat (limited to 'lib/public/Collaboration/Reference/Reference.php')
-rw-r--r-- | lib/public/Collaboration/Reference/Reference.php | 4 |
1 files changed, 4 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 [ |