mirror of
https://github.com/flarum/framework.git
synced 2025-02-14 02:42:53 +08:00
29 lines
540 B
PHP
29 lines
540 B
PHP
![]() |
<?php namespace Flarum\Events;
|
||
|
|
||
|
use Flarum\Core\Users\User;
|
||
|
|
||
|
class UserGroupsWereChanged
|
||
|
{
|
||
|
/**
|
||
|
* The user whose groups were changed.
|
||
|
*
|
||
|
* @var User
|
||
|
*/
|
||
|
public $user;
|
||
|
|
||
|
/**
|
||
|
* @var Flarum\Core\Groups\Group[]
|
||
|
*/
|
||
|
public $oldGroups;
|
||
|
|
||
|
/**
|
||
|
* @param User $user The user whose groups were changed.
|
||
|
* @param Flarum\Core\Groups\Group[] $user
|
||
|
*/
|
||
|
public function __construct(User $user, array $oldGroups)
|
||
|
{
|
||
|
$this->user = $user;
|
||
|
$this->oldGroups = $oldGroups;
|
||
|
}
|
||
|
}
|