mc-cms-namelessmc/core/classes/Group_Sync/BatchableGroupSyncInjector.php
Sam 6f15e14392
chore: fix styleci (#3588)
Co-authored-by: Sam <samerton@users.noreply.github.com>
2025-03-29 10:50:03 +00:00

30 lines
1,010 B
PHP

<?php
/**
* Represents a GroupSyncInjector which can add multiple groups to a {@see User} at once.
*
* @package NamelessMC\GroupSync
* @author Aberdeener
* @version 2.0.3
* @license MIT
*/
interface BatchableGroupSyncInjector
{
/**
* Add multiple groups to a user at once.
*
* @param User $user The user to add groups to
* @param array $group_ids Array of native group IDs to remove
* @return false|array Array of group IDs and the status of the operation for each, or false if error
*/
public function batchAddGroups(User $user, array $group_ids);
/**
* Remove multiple groups from a user at once.
*
* @param User $user The user to remove groups from
* @param array $group_ids Array of native group IDs to remove
* @return false|array Array of group IDs and the status of the operation for each, or false if error
*/
public function batchRemoveGroups(User $user, array $group_ids);
}