<?php

namespace Statamic\Events;

class UserDeleting extends Event
{
    public function __construct(public $user)
    {
    }

    /**
     * Dispatch the event with the given arguments, and halt on first non-null listener response.
     *
     * @return mixed
     */
    public static function dispatch()
    {
        return event(new static(...func_get_args()), [], true);
    }
}
