mirror of
https://github.com/flarum/framework.git
synced 2025-02-19 07:13:24 +08:00
41 lines
815 B
PHP
41 lines
815 B
PHP
<?php namespace Flarum\Events;
|
|
|
|
use Flarum\Core\Groups\Group;
|
|
use Flarum\Core\Users\User;
|
|
|
|
class GroupWillBeDeleted
|
|
{
|
|
/**
|
|
* The group who will be deleted.
|
|
*
|
|
* @var Group
|
|
*/
|
|
public $group;
|
|
|
|
/**
|
|
* The user who is performing the action.
|
|
*
|
|
* @var User
|
|
*/
|
|
public $actor;
|
|
|
|
/**
|
|
* Any group input associated with the command.
|
|
*
|
|
* @var array
|
|
*/
|
|
public $data;
|
|
|
|
/**
|
|
* @param Group $group The group who will be deleted.
|
|
* @param User $actor The user performing the action.
|
|
* @param array $data Any group input associated with the command.
|
|
*/
|
|
public function __construct(Group $group, User $actor, array $data)
|
|
{
|
|
$this->group = $group;
|
|
$this->actor = $actor;
|
|
$this->data = $data;
|
|
}
|
|
}
|