Browse Source

fix: Fix tiny phpdoc errors related to Share

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/44533/head
Côme Chilliet 1 month ago
parent
commit
af728c5ff6
No account linked to committer's email address
2 changed files with 7 additions and 10 deletions
  1. 6
    10
      lib/private/Share20/Share.php
  2. 1
    0
      lib/public/Share/IShare.php

+ 6
- 10
lib/private/Share20/Share.php View File

/** @var string */ /** @var string */
private $label = ''; private $label = '';


/** @var IRootFolder */
private $rootFolder;

/** @var IUserManager */
private $userManager;

/** @var ICacheEntry|null */ /** @var ICacheEntry|null */
private $nodeCacheEntry; private $nodeCacheEntry;


/** @var bool */ /** @var bool */
private $hideDownload = false; private $hideDownload = false;


public function __construct(IRootFolder $rootFolder, IUserManager $userManager) {
$this->rootFolder = $rootFolder;
$this->userManager = $userManager;
public function __construct(
private IRootFolder $rootFolder,
private IUserManager $userManager,
) {
} }


/** /**
* @inheritdoc * @inheritdoc
*/ */
public function setId($id) { public function setId($id) {
/** @var mixed $id Let's be safe until strong typing */
if (is_int($id)) { if (is_int($id)) {
$id = (string)$id; $id = (string)$id;
} }
/** /**
* Set the parent of this share * Set the parent of this share
* *
* @param int parent
* @param int $parent
* @return IShare * @return IShare
* @deprecated The new shares do not have parents. This is just here for legacy reasons. * @deprecated The new shares do not have parents. This is just here for legacy reasons.
*/ */

+ 1
- 0
lib/public/Share/IShare.php View File

* Set the cache entry for the shared node * Set the cache entry for the shared node
* *
* @param ICacheEntry $entry * @param ICacheEntry $entry
* @return void
* @since 11.0.0 * @since 11.0.0
*/ */
public function setNodeCacheEntry(ICacheEntry $entry); public function setNodeCacheEntry(ICacheEntry $entry);

Loading…
Cancel
Save