mirror of
https://github.com/nextcloud/server.git
synced 2026-05-13 00:51:10 -04:00
Remove obsolete `resource` typing for ldap with PHP>=8.1. Add proper attributes. Add strong typing. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
34 lines
634 B
PHP
34 lines
634 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace OCP\LDAP;
|
|
|
|
use OCP\AppFramework\Attribute\Consumable;
|
|
|
|
/**
|
|
* Interface IDeletionFlagSupport
|
|
*
|
|
* @since 11.0.0
|
|
*/
|
|
#[Consumable(since: '11.0.0')]
|
|
interface IDeletionFlagSupport {
|
|
/**
|
|
* Flag record for deletion.
|
|
* @param string $uid user id
|
|
* @since 11.0.0
|
|
*/
|
|
public function flagRecord(string $uid): void;
|
|
|
|
/**
|
|
* Unflag record for deletion.
|
|
* @param string $uid user id
|
|
* @since 11.0.0
|
|
*/
|
|
public function unflagRecord(string $uid): void;
|
|
}
|