framework/src/Events/GroupWillBeDeleted.php

51 lines
1.0 KiB
PHP
Raw Normal View History

2015-08-27 07:40:18 +08:00
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Events;
2015-07-31 18:40:49 +08:00
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;
}
}