chore: Remove PHP8 constructor property promotions

25 supports 7.4

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/44324/head
Côme Chilliet 2 months ago committed by backportbot[bot]
parent e7b3b5e7eb
commit 5dd565dbc0

@ -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…
Cancel
Save