diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-10-31 20:19:00 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-10-31 20:19:14 +0100 |
commit | 5a00870a2b4710c37134867d9515985ac1c88611 (patch) | |
tree | b94543a02c76b339c8d1c3c2fb92d16049b89b15 /lib/public/Share | |
parent | 3692769b0a0713fa9e3976692736da76707986c5 (diff) | |
download | nextcloud-server-5a00870a2b4710c37134867d9515985ac1c88611.tar.gz nextcloud-server-5a00870a2b4710c37134867d9515985ac1c88611.zip |
Stricter signature
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/Share')
-rw-r--r-- | lib/public/Share/IManager.php | 5 | ||||
-rw-r--r-- | lib/public/Share/IShareProvider.php | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/public/Share/IManager.php b/lib/public/Share/IManager.php index e8c69e06f9f..a74ab5fe796 100644 --- a/lib/public/Share/IManager.php +++ b/lib/public/Share/IManager.php @@ -22,6 +22,7 @@ namespace OCP\Share; +use OCP\Files\Folder; use OCP\Files\Node; use OCP\Share\Exceptions\ShareNotFound; @@ -91,12 +92,12 @@ interface IManager { * Get all shares shared by (initiated) by the provided user in a folder. * * @param string $userId - * @param Node|null $node + * @param Folder $node * @param bool $reshares * @return IShare[] * @since 9.2.0 */ - public function getSharesInFolder($userId, Node $node, $reshares = false); + public function getSharesInFolder($userId, Folder $node, $reshares = false); /** * Get shares shared by (initiated) by the provided user. diff --git a/lib/public/Share/IShareProvider.php b/lib/public/Share/IShareProvider.php index db444d36935..7d134583317 100644 --- a/lib/public/Share/IShareProvider.php +++ b/lib/public/Share/IShareProvider.php @@ -22,6 +22,7 @@ namespace OCP\Share; +use OCP\Files\Folder; use OCP\Share\Exceptions\ShareNotFound; use OCP\Files\Node; @@ -95,12 +96,12 @@ interface IShareProvider { * Get all shares by the given user in a folder * * @param string $userId - * @param Node|null $node + * @param Folder $node * @param bool $reshares Also get the shares where $user is the owner instead of just the shares where $user is the initiator * @return \OCP\Share\IShare[] * @since 9.2.0 */ - public function getSharesInFolder($userId, $node, $reshares); + public function getSharesInFolder($userId, Folder $node, $reshares); /** * Get all shares by the given user |