diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-08-28 20:54:21 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-08-31 16:24:33 +0200 |
commit | a392235e23c3b8af1d0eba4dbac18b18de826a1c (patch) | |
tree | c983c213d99937bb53463e759d703d85861fb631 /lib/public/Collaboration | |
parent | bee8fd2408b053756e052a2b96899935c1adf872 (diff) | |
download | nextcloud-server-a392235e23c3b8af1d0eba4dbac18b18de826a1c.tar.gz nextcloud-server-a392235e23c3b8af1d0eba4dbac18b18de826a1c.zip |
Cleanup
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public/Collaboration')
-rw-r--r-- | lib/public/Collaboration/Reference/IReference.php | 31 | ||||
-rw-r--r-- | lib/public/Collaboration/Reference/IReferenceManager.php | 5 | ||||
-rw-r--r-- | lib/public/Collaboration/Reference/IReferenceProvider.php | 2 |
3 files changed, 26 insertions, 12 deletions
diff --git a/lib/public/Collaboration/Reference/IReference.php b/lib/public/Collaboration/Reference/IReference.php index 2a7213983cf..0155ae86dd8 100644 --- a/lib/public/Collaboration/Reference/IReference.php +++ b/lib/public/Collaboration/Reference/IReference.php @@ -1,4 +1,6 @@ <?php + +declare(strict_types=1); /** * @copyright Copyright (c) 2022 Julius Härtl <jus@bitgrid.net> * @@ -35,11 +37,20 @@ interface IReference extends JsonSerializable { public function getId(): string; /** + * Accessible flag indicates if the user has access to the provided reference + * * @since 25.0.0 */ public function setAccessible(bool $accessible): void; /** + * Accessible flag indicates if the user has access to the provided reference + * + * @since 25.0.0 + */ + public function getAccessible(): bool; + + /** * @since 25.0.0 */ public function setTitle(string $title): void; @@ -90,32 +101,30 @@ interface IReference extends JsonSerializable { public function getUrl(): ?string; /** + * Set the reference specific rich object representation + * * @since 25.0.0 */ - public function setRichObject(string $type, array $richObject): void; + public function setRichObject(string $type, ?array $richObject): void; /** + * Returns the type of the reference specific rich object + * * @since 25.0.0 */ public function getRichObjectType(): string; /** + * Returns the reference specific rich object representation + * * @since 25.0.0 */ public function getRichObject(): array; /** + * Returns the opengraph rich object representation + * * @since 25.0.0 */ public function getOpenGraphObject(): array; - - /** - * @since 25.0.0 - */ - public static function toCache(IReference $reference): array; - - /** - * @since 25.0.0 - */ - public static function fromCache(array $cache): IReference; } diff --git a/lib/public/Collaboration/Reference/IReferenceManager.php b/lib/public/Collaboration/Reference/IReferenceManager.php index 8d2110911d3..e9a53e8a61a 100644 --- a/lib/public/Collaboration/Reference/IReferenceManager.php +++ b/lib/public/Collaboration/Reference/IReferenceManager.php @@ -1,4 +1,6 @@ <?php + +declare(strict_types=1); /** * @copyright Copyright (c) 2022 Julius Härtl <jus@bitgrid.net> * @@ -38,7 +40,8 @@ interface IReferenceManager { * * This method has a fallback to always provide the open graph metadata, * but may still return null in case this is disabled or the fetching fails + * * @since 25.0.0 */ - public function resolveReference(string $reference): ?IReference; + public function resolveReference(string $referenceId): ?IReference; } diff --git a/lib/public/Collaboration/Reference/IReferenceProvider.php b/lib/public/Collaboration/Reference/IReferenceProvider.php index b7b2f187a65..d2f3601a475 100644 --- a/lib/public/Collaboration/Reference/IReferenceProvider.php +++ b/lib/public/Collaboration/Reference/IReferenceProvider.php @@ -1,4 +1,6 @@ <?php + +declare(strict_types=1); /** * @copyright Copyright (c) 2022 Julius Härtl <jus@bitgrid.net> * |