Skip to content

Commit

Permalink
Add PHPDoc for ICloudFederationProviderManager
Browse files Browse the repository at this point in the history
Signed-off-by: Sandro Mesterheide <[email protected]>
  • Loading branch information
smesterheide committed Nov 23, 2022
1 parent 1d3f2e5 commit 373ad1d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/public/Federation/ICloudFederationProviderManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ interface ICloudFederationProviderManager {
*/
public function addCloudFederationProvider($resourceType, $displayName, callable $callback);

/**
* Registers an callback function which must return an cloud federation provider
* for a set of supported share types
*
* @param string $providerId unique id for removal
* @param string $resourceType which resource type does the provider handles
* @param array $supportedShareTypes which share types does the provider support
* @param string $displayName user facing name of the federated share provider
* @param callable $callback
*
* @since 26.0.0
*/
public function addCloudFederationProviderForShareType($providerId, $resourceType, array $supportedShareTypes, $displayName, callable $callback);

/**
Expand Down Expand Up @@ -76,6 +88,15 @@ public function getAllCloudFederationProviders();
*/
public function getCloudFederationProvider($resourceType);

/**
* get a specific cloud federation provider for a given federation share
*
* @param ICloudFederationShare $share
* @return ICloudFederationProvider
* @throws ProviderDoesNotExistsException
*
* @since 26.0.0
*/
public function getCloudFederationProviderForFederationShare(ICloudFederationShare $share);

/**
Expand Down

0 comments on commit 373ad1d

Please sign in to comment.