File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class Share implements IShare {
4444 private $ sharedBy ;
4545 /** @var string */
4646 private $ shareOwner ;
47- /** @var int */
47+ /** @var int-mask-of<Constants::PERMISSION_*> */
4848 private $ permissions ;
4949 /** @var IAttributes */
5050 private $ attributes ;
Original file line number Diff line number Diff line change 99namespace OCP \Share ;
1010
1111use OCP \AppFramework \Attribute \Consumable ;
12+ use OCP \Constants ;
1213use OCP \Files \Cache \ICacheEntry ;
13- use OCP \Files \File ;
14- use OCP \Files \Folder ;
1514use OCP \Files \Node ;
1615use OCP \Files \NotFoundException ;
1716use OCP \Share \Exceptions \IllegalIDChangeException ;
@@ -276,19 +275,17 @@ public function getSharedWithAvatar();
276275
277276 /**
278277 * Set the permissions.
279- * See \OCP\Constants::PERMISSION_*
280278 *
281- * @param int $permissions
279+ * @param int-mask-of<Constants::PERMISSION_*> $permissions
282280 * @return IShare The modified object
283281 * @since 9.0.0
284282 */
285283 public function setPermissions ($ permissions );
286284
287285 /**
288286 * Get the share permissions
289- * See \OCP\Constants::PERMISSION_*
290287 *
291- * @return int
288+ * @return int-mask-of<Constants::PERMISSION_*>
292289 * @since 9.0.0
293290 */
294291 public function getPermissions ();
You can’t perform that action at this time.
0 commit comments