26 lines
639 B
PHP
26 lines
639 B
PHP
<?php
|
|
|
|
namespace App\EventPaymentModules\DTO;
|
|
|
|
use App\Models\Event;
|
|
use App\Models\EventParticipant;
|
|
use App\ValueObjects\Amount;
|
|
|
|
/**
|
|
* Eingabe für {@see \App\EventPaymentModules\EventPaymentModule::createInvoice()}.
|
|
* Von allen Modulen geteilt.
|
|
*/
|
|
final class CreateInvoiceRequest
|
|
{
|
|
/**
|
|
* @param array<string, mixed> $configuration Aufgelöste (pro-Event-)Konfiguration des Moduls.
|
|
*/
|
|
public function __construct(
|
|
public readonly Event $event,
|
|
public readonly EventParticipant $participant,
|
|
public readonly Amount $amount,
|
|
public readonly array $configuration = [],
|
|
) {
|
|
}
|
|
}
|