Files
firefly-iii/app/Events/RequestedReportOnJournals.php

61 lines
1.7 KiB
PHP
Raw Normal View History

2018-06-25 16:01:45 +02:00
<?php
2018-12-31 07:48:23 +01:00
/**
* RequestedReportOnJournals.php
2020-01-25 06:08:56 +01:00
* Copyright (c) 2019 james@firefly-iii.org
2018-12-31 07:48:23 +01:00
*
* This file is part of Firefly III (https://github.com/firefly-iii).
2018-12-31 07:48:23 +01: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.
2018-12-31 07:48:23 +01:00
*
* This program is distributed in the hope that it will be useful,
2018-12-31 07:48:23 +01: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.
2018-12-31 07:48:23 +01:00
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
2018-12-31 07:48:23 +01:00
*/
declare(strict_types=1);
2018-06-25 16:01:45 +02:00
namespace FireflyIII\Events;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Collection;
2025-10-05 12:49:39 +02:00
use Illuminate\Support\Facades\Log;
2018-06-25 16:01:45 +02:00
/**
* Class RequestedReportOnJournals
*/
class RequestedReportOnJournals
{
2022-10-30 14:24:10 +01:00
use Dispatchable;
use InteractsWithSockets;
use SerializesModels;
2018-06-25 16:01:45 +02:00
/**
* Create a new event instance.
*/
public function __construct(public int $userId, public Collection $groups)
2018-06-25 16:01:45 +02:00
{
2025-10-05 12:49:39 +02:00
Log::debug('In event RequestedReportOnJournals.');
2018-06-25 16:01:45 +02:00
}
/**
* Get the channels the event should broadcast on.
*
2021-05-24 08:50:17 +02:00
* @return PrivateChannel
2018-06-25 16:01:45 +02:00
*/
public function broadcastOn()
{
return new PrivateChannel('channel-name');
}
}