aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/User/OfflineUser.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/lib/User/OfflineUser.php')
-rw-r--r--apps/user_ldap/lib/User/OfflineUser.php53
1 files changed, 10 insertions, 43 deletions
diff --git a/apps/user_ldap/lib/User/OfflineUser.php b/apps/user_ldap/lib/User/OfflineUser.php
index e39c4b0bb99..ecaab7188ba 100644
--- a/apps/user_ldap/lib/User/OfflineUser.php
+++ b/apps/user_ldap/lib/User/OfflineUser.php
@@ -1,27 +1,9 @@
<?php
+
/**
- * @copyright Copyright (c) 2016, ownCloud, Inc.
- *
- * @author Arthur Schiwon <blizzz@arthur-schiwon.de>
- * @author Christoph Wurst <christoph@winzerhof-wurst.at>
- * @author Joas Schilling <coding@schilljs.com>
- * @author Morris Jobke <hey@morrisjobke.de>
- * @author Roeland Jago Douma <roeland@famdouma.nl>
- *
- * @license AGPL-3.0
- *
- * This code is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License, version 3,
- * along with this program. If not, see <http://www.gnu.org/licenses/>
- *
+ * SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-only
*/
namespace OCA\User_LDAP\User;
@@ -33,10 +15,6 @@ use OCP\Share\IShare;
class OfflineUser {
/**
- * @var string $ocName
- */
- protected $ocName;
- /**
* @var string $dn
*/
protected $dn;
@@ -70,30 +48,19 @@ class OfflineUser {
*/
protected $hasActiveShares;
/**
- * @var IConfig $config
- */
- protected $config;
- /**
* @var IDBConnection $db
*/
protected $db;
+
/**
- * @var \OCA\User_LDAP\Mapping\UserMapping
+ * @param string $ocName
*/
- protected $mapping;
- /** @var IManager */
- private $shareManager;
-
public function __construct(
- $ocName,
- IConfig $config,
- UserMapping $mapping,
- IManager $shareManager
+ protected $ocName,
+ protected IConfig $config,
+ protected UserMapping $mapping,
+ private IManager $shareManager,
) {
- $this->ocName = $ocName;
- $this->config = $config;
- $this->mapping = $mapping;
- $this->shareManager = $shareManager;
}
/**