24 lines
538 B
PHP
24 lines
538 B
PHP
<?php
|
|
|
|
namespace App\Events\Offer;
|
|
|
|
use App\Models\Offer;
|
|
use App\Models\OfferVersion;
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
|
|
/**
|
|
* Wird gefeuert, nachdem eine OfferVersion als `declined` markiert wurde.
|
|
* Listener schreiben Audit-Log + informieren das Team.
|
|
*/
|
|
class OfferDeclined
|
|
{
|
|
use Dispatchable;
|
|
|
|
public function __construct(
|
|
public readonly Offer $offer,
|
|
public readonly OfferVersion $version,
|
|
public readonly string $via,
|
|
public readonly ?string $reason = null,
|
|
) {
|
|
}
|
|
}
|