. */ declare(strict_types=1); namespace FireflyIII\Events; use FireflyIII\User; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Facades\Log; /** * Class AdminRequestedTestMessage. * */ class AdminRequestedTestMessage extends Event { use SerializesModels; public User $user; /** * Create a new event instance. * * @param User $user */ public function __construct(User $user) { Log::debug(sprintf('Triggered AdminRequestedTestMessage for user #%d (%s)', $user->id, $user->email)); $this->user = $user; } }