mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix: Fix tiny phpdoc errors related to Share
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
85cea1960b
commit
af728c5ff6
2 changed files with 7 additions and 10 deletions
|
|
@ -91,27 +91,23 @@ class Share implements IShare {
|
|||
/** @var string */
|
||||
private $label = '';
|
||||
|
||||
/** @var IRootFolder */
|
||||
private $rootFolder;
|
||||
|
||||
/** @var IUserManager */
|
||||
private $userManager;
|
||||
|
||||
/** @var ICacheEntry|null */
|
||||
private $nodeCacheEntry;
|
||||
|
||||
/** @var bool */
|
||||
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
|
||||
*/
|
||||
public function setId($id) {
|
||||
/** @var mixed $id Let's be safe until strong typing */
|
||||
if (is_int($id)) {
|
||||
$id = (string)$id;
|
||||
}
|
||||
|
|
@ -538,7 +534,7 @@ class Share implements IShare {
|
|||
/**
|
||||
* Set the parent of this share
|
||||
*
|
||||
* @param int parent
|
||||
* @param int $parent
|
||||
* @return IShare
|
||||
* @deprecated The new shares do not have parents. This is just here for legacy reasons.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -587,6 +587,7 @@ interface IShare {
|
|||
* Set the cache entry for the shared node
|
||||
*
|
||||
* @param ICacheEntry $entry
|
||||
* @return void
|
||||
* @since 11.0.0
|
||||
*/
|
||||
public function setNodeCacheEntry(ICacheEntry $entry);
|
||||
|
|
|
|||
Loading…
Reference in a new issue