diff options
author | Joas Schilling <coding@schilljs.com> | 2019-02-07 16:04:15 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-03-01 20:56:18 +0100 |
commit | dee6f7f61f0f0d1827ed0555f199d7bce67e67b6 (patch) | |
tree | 7580fac261264860ffb4690b2445121706cc3c96 /lib/private | |
parent | 31340b8be944fbf86237c10bff87b5ca3a2ffa8a (diff) | |
download | nextcloud-server-dee6f7f61f0f0d1827ed0555f199d7bce67e67b6.tar.gz nextcloud-server-dee6f7f61f0f0d1827ed0555f199d7bce67e67b6.zip |
Fix doc blocks
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Collaboration/Resources/Collection.php | 12 | ||||
-rw-r--r-- | lib/private/Collaboration/Resources/Manager.php | 28 | ||||
-rw-r--r-- | lib/private/Collaboration/Resources/Resource.php | 12 |
3 files changed, 27 insertions, 25 deletions
diff --git a/lib/private/Collaboration/Resources/Collection.php b/lib/private/Collaboration/Resources/Collection.php index 54c009b917c..5770e8918fd 100644 --- a/lib/private/Collaboration/Resources/Collection.php +++ b/lib/private/Collaboration/Resources/Collection.php @@ -64,7 +64,7 @@ class Collection implements ICollection { /** * @return int - * @since 15.0.0 + * @since 16.0.0 */ public function getId(): int { return $this->id; @@ -72,7 +72,7 @@ class Collection implements ICollection { /** * @return string - * @since 15.0.0 + * @since 16.0.0 */ public function getName(): string { return $this->name; @@ -80,7 +80,7 @@ class Collection implements ICollection { /** * @return IResource[] - * @since 15.0.0 + * @since 16.0.0 */ public function getResources(): array { if (empty($this->resources)) { @@ -104,7 +104,7 @@ class Collection implements ICollection { * * @param IResource $resource * @throws ResourceException when the resource is already part of the collection - * @since 15.0.0 + * @since 16.0.0 */ public function addResource(IResource $resource) { array_map(function(IResource $r) use ($resource) { @@ -134,7 +134,7 @@ class Collection implements ICollection { * Removes a resource from a collection * * @param IResource $resource - * @since 15.0.0 + * @since 16.0.0 */ public function removeResource(IResource $resource) { $this->resources = array_filter($this->resources, function(IResource $r) use ($resource) { @@ -158,7 +158,7 @@ class Collection implements ICollection { * * @param IUser $user * @return bool - * @since 15.0.0 + * @since 16.0.0 */ public function canAccess(IUser $user = null): bool { foreach ($this->getResources() as $resource) { diff --git a/lib/private/Collaboration/Resources/Manager.php b/lib/private/Collaboration/Resources/Manager.php index 9f083b3c676..55274432d76 100644 --- a/lib/private/Collaboration/Resources/Manager.php +++ b/lib/private/Collaboration/Resources/Manager.php @@ -49,7 +49,7 @@ class Manager implements IManager { * @param int $id * @return ICollection * @throws CollectionException when the collection could not be found - * @since 15.0.0 + * @since 16.0.0 */ public function getCollection(int $id): ICollection { $query = $this->connection->getQueryBuilder(); @@ -68,10 +68,12 @@ class Manager implements IManager { } /** - * @param int $id - * @return ICollection - * @throws CollectionException when the collection could not be found - * @since 15.0.0 + * @param IUser $user + * @param string $filter + * @param int $limit + * @param int $start + * @return ICollection[] + * @since 16.0.0 */ public function searchCollections(IUser $user, string $filter, int $limit = 50, int $start = 0): array { $query = $this->connection->getQueryBuilder(); @@ -99,7 +101,7 @@ class Manager implements IManager { /** * @param string $name * @return ICollection - * @since 15.0.0 + * @since 16.0.0 */ public function newCollection(string $name): ICollection { $query = $this->connection->getQueryBuilder(); @@ -116,7 +118,7 @@ class Manager implements IManager { * @param string $type * @param string $id * @return IResource - * @since 15.0.0 + * @since 16.0.0 */ public function getResource(string $type, string $id): IResource { return new Resource($this, $this->connection, $type, $id); @@ -124,7 +126,7 @@ class Manager implements IManager { /** * @return IProvider[] - * @since 15.0.0 + * @since 16.0.0 */ public function getProviders(): array { return $this->providers; @@ -135,7 +137,7 @@ class Manager implements IManager { * * @param IResource $resource * @return string - * @since 15.0.0 + * @since 16.0.0 */ public function getName(IResource $resource): string { foreach ($this->getProviders() as $provider) { @@ -174,7 +176,7 @@ class Manager implements IManager { * @param IResource $resource * @param IUser $user * @return bool - * @since 15.0.0 + * @since 16.0.0 */ public function canAccess(IResource $resource, IUser $user = null): bool { foreach ($this->getProviders() as $provider) { @@ -203,7 +205,7 @@ class Manager implements IManager { * * @param IResource $resource * @return string - * @since 15.0.0 + * @since 16.0.0 */ public function getType(): string { return ''; @@ -214,7 +216,7 @@ class Manager implements IManager { * * @param IResource $resource * @return string - * @since 15.0.0 + * @since 16.0.0 */ public function getLink(IResource $resource): string { foreach ($this->getProviders() as $provider) { @@ -232,7 +234,7 @@ class Manager implements IManager { /** * @param string $name * @return ICollection - * @since 15.0.0 + * @since 16.0.0 */ public function renameCollection(int $id, string $name): ICollection { $query = $this->connection->getQueryBuilder(); diff --git a/lib/private/Collaboration/Resources/Resource.php b/lib/private/Collaboration/Resources/Resource.php index eafba8555e8..c31843bdd06 100644 --- a/lib/private/Collaboration/Resources/Resource.php +++ b/lib/private/Collaboration/Resources/Resource.php @@ -67,7 +67,7 @@ class Resource implements IResource { /** * @return string - * @since 15.0.0 + * @since 16.0.0 */ public function getType(): string { return $this->type; @@ -75,7 +75,7 @@ class Resource implements IResource { /** * @return string - * @since 15.0.0 + * @since 16.0.0 */ public function getId(): string { return $this->id; @@ -83,7 +83,7 @@ class Resource implements IResource { /** * @return string - * @since 15.0.0 + * @since 16.0.0 */ public function getName(): string { if ($this->name === null) { @@ -95,7 +95,7 @@ class Resource implements IResource { /** * @return string - * @since 15.0.0 + * @since 16.0.0 */ public function getIconClass(): string { if ($this->iconClass === null) { @@ -119,7 +119,7 @@ class Resource implements IResource { * * @param IUser $user * @return bool - * @since 15.0.0 + * @since 16.0.0 */ public function canAccess(IUser $user = null): bool { return $this->manager->canAccess($this, $user); @@ -127,7 +127,7 @@ class Resource implements IResource { /** * @return ICollection[] - * @since 15.0.0 + * @since 16.0.0 */ public function getCollections(): array { $collections = []; |