mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
chore: Remove PHP8 constructor property promotions
25 supports 7.4 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
b57486182f
commit
a5ac6d9db3
3 changed files with 63 additions and 20 deletions
|
|
@ -37,15 +37,30 @@ use Sabre\DAV\Exception\NotFound;
|
|||
* Mapping node for system tag to object id
|
||||
*/
|
||||
class SystemTagMappingNode implements \Sabre\DAV\INode {
|
||||
private ISystemTag $tag;
|
||||
private string $objectId;
|
||||
private string $objectType;
|
||||
private IUser $user;
|
||||
private ISystemTagManager $tagManager;
|
||||
private ISystemTagObjectMapper $tagMapper;
|
||||
private \Closure $childWriteAccessFunction;
|
||||
|
||||
public function __construct(
|
||||
private ISystemTag $tag,
|
||||
private string $objectId,
|
||||
private string $objectType,
|
||||
private IUser $user,
|
||||
private ISystemTagManager $tagManager,
|
||||
private ISystemTagObjectMapper $tagMapper,
|
||||
private \Closure $childWriteAccessFunction,
|
||||
ISystemTag $tag,
|
||||
string $objectId,
|
||||
string $objectType,
|
||||
IUser $user,
|
||||
ISystemTagManager $tagManager,
|
||||
ISystemTagObjectMapper $tagMapper,
|
||||
\Closure $childWriteAccessFunction
|
||||
) {
|
||||
$this->tag = $tag;
|
||||
$this->objectId = $objectId;
|
||||
$this->objectType = $objectType;
|
||||
$this->user = $user;
|
||||
$this->tagManager = $tagManager;
|
||||
$this->tagMapper = $tagMapper;
|
||||
$this->childWriteAccessFunction = $childWriteAccessFunction;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -40,14 +40,27 @@ use Sabre\DAV\ICollection;
|
|||
* Collection containing tags by object id
|
||||
*/
|
||||
class SystemTagsObjectMappingCollection implements ICollection {
|
||||
private string $objectId;
|
||||
private string $objectType;
|
||||
private IUser $user;
|
||||
private ISystemTagManager $tagManager;
|
||||
private ISystemTagObjectMapper $tagMapper;
|
||||
protected \Closure $childWriteAccessFunction;
|
||||
|
||||
public function __construct(
|
||||
private string $objectId,
|
||||
private string $objectType,
|
||||
private IUser $user,
|
||||
private ISystemTagManager $tagManager,
|
||||
private ISystemTagObjectMapper $tagMapper,
|
||||
protected \Closure $childWriteAccessFunction,
|
||||
string $objectId,
|
||||
string $objectType,
|
||||
IUser $user,
|
||||
ISystemTagManager $tagManager,
|
||||
ISystemTagObjectMapper $tagMapper,
|
||||
\Closure $childWriteAccessFunction
|
||||
) {
|
||||
$this->objectId = $objectId;
|
||||
$this->objectType = $objectType;
|
||||
$this->user = $user;
|
||||
$this->tagManager = $tagManager;
|
||||
$this->tagMapper = $tagMapper;
|
||||
$this->childWriteAccessFunction = $childWriteAccessFunction;
|
||||
}
|
||||
|
||||
public function createFile($name, $data = null) {
|
||||
|
|
|
|||
|
|
@ -38,15 +38,30 @@ use Sabre\DAV\ICollection;
|
|||
* Collection containing object ids by object type
|
||||
*/
|
||||
class SystemTagsObjectTypeCollection implements ICollection {
|
||||
private string $objectType;
|
||||
private ISystemTagManager $tagManager;
|
||||
private ISystemTagObjectMapper $tagMapper;
|
||||
private IUserSession $userSession;
|
||||
private IGroupManager $groupManager;
|
||||
protected \Closure $childExistsFunction;
|
||||
protected \Closure $childWriteAccessFunction;
|
||||
|
||||
public function __construct(
|
||||
private string $objectType,
|
||||
private ISystemTagManager $tagManager,
|
||||
private ISystemTagObjectMapper $tagMapper,
|
||||
private IUserSession $userSession,
|
||||
private IGroupManager $groupManager,
|
||||
protected \Closure $childExistsFunction,
|
||||
protected \Closure $childWriteAccessFunction,
|
||||
string $objectType,
|
||||
ISystemTagManager $tagManager,
|
||||
ISystemTagObjectMapper $tagMapper,
|
||||
IUserSession $userSession,
|
||||
IGroupManager $groupManager,
|
||||
\Closure $childExistsFunction,
|
||||
\Closure $childWriteAccessFunction
|
||||
) {
|
||||
$this->objectType = $objectType;
|
||||
$this->tagManager = $tagManager;
|
||||
$this->tagMapper = $tagMapper;
|
||||
$this->userSession = $userSession;
|
||||
$this->groupManager = $groupManager;
|
||||
$this->childExistsFunction = $childExistsFunction;
|
||||
$this->childWriteAccessFunction = $childWriteAccessFunction;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue