Files
firefly-iii/app/Events/Test/TestNotificationChannel.php

46 lines
1.4 KiB
PHP
Raw Normal View History

2017-09-27 15:45:55 +02:00
<?php
2024-12-08 16:28:22 +01:00
/*
* TestEmailChannel.php
* Copyright (c) 2024 james@firefly-iii.org.
2017-09-27 15:45:55 +02:00
*
* This file is part of Firefly III (https://github.com/firefly-iii).
2017-10-21 08:40:00 +02:00
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
2017-10-21 08:40:00 +02:00
*
* This program is distributed in the hope that it will be useful,
2017-10-21 08:40:00 +02:00
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
2017-10-21 08:40:00 +02:00
*
* You should have received a copy of the GNU Affero General Public License
2024-12-08 16:28:22 +01:00
* along with this program. If not, see https://www.gnu.org/licenses/.
2017-09-27 15:45:55 +02:00
*/
2018-05-11 10:08:34 +02:00
declare(strict_types=1);
2024-12-08 16:28:22 +01:00
namespace FireflyIII\Events\Test;
2017-09-27 15:45:55 +02:00
use FireflyIII\User;
use Illuminate\Queue\SerializesModels;
2024-12-08 16:28:22 +01:00
class TestNotificationChannel
2017-09-27 15:45:55 +02:00
{
use SerializesModels;
2024-12-08 16:28:22 +01:00
public User $user;
public string $channel;
2017-09-27 15:45:55 +02:00
/**
* Create a new event instance.
*/
2024-12-08 16:28:22 +01:00
public function __construct(string $channel, User $user)
2017-09-27 15:45:55 +02:00
{
2024-12-08 16:28:22 +01:00
app('log')->debug(sprintf('Triggered TestNotificationChannel("%s") for user #%d (%s)', $channel, $user->id, $user->email));
$this->user = $user;
$this->channel = $channel;
2017-09-27 15:45:55 +02:00
}
}