framework/src/Events/GroupWillBeDeleted.php

41 lines
815 B
PHP
Raw Normal View History

2015-07-31 18:40:49 +08:00
<?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;
}
}