chore: Add descriptions for new events and fix copyright year

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2024-09-10 16:20:30 +02:00
parent 957ac81a56
commit 7d881b1bc3
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A
3 changed files with 9 additions and 6 deletions

View file

@ -3,7 +3,7 @@
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
@ -12,6 +12,7 @@ namespace OCP\User\Events;
use OCP\EventDispatcher\Event;
/**
* Emitted before removing the mapping between an external user and an internal userid
* @since 31.0.0
*/
class BeforeUserIdUnassignedEvent extends Event {
@ -19,7 +20,7 @@ class BeforeUserIdUnassignedEvent extends Event {
* @since 31.0.0
*/
public function __construct(
private string $userId,
private readonly string $userId,
) {
parent::__construct();
}

View file

@ -3,7 +3,7 @@
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
@ -12,6 +12,7 @@ namespace OCP\User\Events;
use OCP\EventDispatcher\Event;
/**
* Emitted by backends (like user_ldap) when a user created externally is mapped for the first time and assigned a userid
* @since 31.0.0
*/
class UserIdAssignedEvent extends Event {
@ -19,7 +20,7 @@ class UserIdAssignedEvent extends Event {
* @since 31.0.0
*/
public function __construct(
private string $userId,
private readonly string $userId,
) {
parent::__construct();
}

View file

@ -3,7 +3,7 @@
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
@ -12,6 +12,7 @@ namespace OCP\User\Events;
use OCP\EventDispatcher\Event;
/**
* Emitted after removing the mapping between an external user and an internal userid
* @since 31.0.0
*/
class UserIdUnassignedEvent extends Event {
@ -19,7 +20,7 @@ class UserIdUnassignedEvent extends Event {
* @since 31.0.0
*/
public function __construct(
private string $userId,
private readonly string $userId,
) {
parent::__construct();
}