Flarum\Core\Command\DeleteUser::__construct PHP Method

__construct() public method

public __construct ( integer $userId, User $actor, array $data = [] )
$userId integer The ID of the user to delete.
$actor Flarum\Core\User The user performing the action.
$data array 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;
    }
DeleteUser