mirror of
https://github.com/flarum/core.git
synced 2025-10-28 22:07:33 +01:00
51 lines
1.1 KiB
PHP
51 lines
1.1 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Flarum.
|
|
*
|
|
* For detailed copyright and license information, please view the
|
|
* LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Flarum\User\Command;
|
|
|
|
use Flarum\User\User;
|
|
|
|
class DeleteUser
|
|
{
|
|
/**
|
|
* The ID of the user to delete.
|
|
*
|
|
* @var int
|
|
*/
|
|
public $userId;
|
|
|
|
/**
|
|
* The user performing the action.
|
|
*
|
|
* @var User
|
|
*/
|
|
public $actor;
|
|
|
|
/**
|
|
* Any other user input associated with the action. This is unused by
|
|
* default, but may be used by extensions.
|
|
*
|
|
* @var array
|
|
*/
|
|
public $data;
|
|
|
|
/**
|
|
* @param int $userId The ID of the user to delete.
|
|
* @param User $actor The user performing the action.
|
|
* @param array $data Any other user input associated with the action. This
|
|
* is unused by default, but may be used by extensions.
|
|
*/
|
|
public function __construct($userId, User $actor, array $data = [])
|
|
{
|
|
$this->userId = $userId;
|
|
$this->actor = $actor;
|
|
$this->data = $data;
|
|
}
|
|
}
|