2024-12-20 05:20:37 +01:00
|
|
|
<?php
|
2026-01-18 10:53:13 +01:00
|
|
|
|
2024-12-20 05:20:37 +01:00
|
|
|
/*
|
2026-01-18 10:11:26 +01:00
|
|
|
* SubscriptionNeedsExtensionOrRenewal.php
|
|
|
|
|
* Copyright (c) 2026 james@firefly-iii.org
|
2024-12-20 05:20:37 +01:00
|
|
|
*
|
|
|
|
|
* This file is part of Firefly III (https://github.com/firefly-iii).
|
|
|
|
|
*
|
|
|
|
|
* 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.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* 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.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
2026-01-18 10:11:26 +01:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2024-12-20 05:20:37 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2026-01-18 10:11:26 +01:00
|
|
|
namespace FireflyIII\Events\Model\Subscription;
|
2024-12-20 05:20:37 +01:00
|
|
|
|
2026-01-18 10:11:26 +01:00
|
|
|
use FireflyIII\Events\Event;
|
|
|
|
|
use FireflyIII\Models\Bill;
|
2024-12-20 05:20:37 +01:00
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
2026-01-18 10:11:26 +01:00
|
|
|
class SubscriptionNeedsExtensionOrRenewal extends Event
|
2024-12-20 05:20:37 +01:00
|
|
|
{
|
|
|
|
|
use SerializesModels;
|
|
|
|
|
|
2026-01-23 15:09:50 +01:00
|
|
|
public function __construct(
|
|
|
|
|
public Bill $subscription,
|
|
|
|
|
public string $field,
|
|
|
|
|
public int $diff
|
|
|
|
|
) {}
|
2024-12-20 05:20:37 +01:00
|
|
|
}
|