41 lines
1.5 KiB
PHP
41 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace App\Domains\Event\Actions\CreateEvent;
|
|
|
|
use App\Enumerations\ParticipationFeeType;
|
|
use DateTime;
|
|
|
|
class CreateEventRequest {
|
|
public string $name;
|
|
public string $location;
|
|
public string $postalCode;
|
|
public string $email;
|
|
public DateTime $begin;
|
|
public DateTime $end;
|
|
public DateTime $earlyBirdEnd;
|
|
public DateTime $registrationFinalEnd;
|
|
public int $earlyBirdEndAmountIncrease;
|
|
public ParticipationFeeType $participationFeeType;
|
|
public string $accountOwner;
|
|
public string $accountIban;
|
|
public bool $payPerDay;
|
|
public bool $payDirect;
|
|
|
|
public function __construct(string $name, string $location, string $postalCode, string $email, DateTime $begin, DateTime $end, DateTime $earlyBirdEnd, DateTime $registrationFinalEnd, int $earlyBirdEndAmountIncrease, ParticipationFeeType $participationFeeType, string $accountOwner, string $accountIban, bool $payPerDay, bool $payDirect) {
|
|
$this->name = $name;
|
|
$this->location = $location;
|
|
$this->postalCode = $postalCode;
|
|
$this->email = $email;
|
|
$this->begin = $begin;
|
|
$this->end = $end;
|
|
$this->earlyBirdEnd = $earlyBirdEnd;
|
|
$this->registrationFinalEnd = $registrationFinalEnd;
|
|
$this->earlyBirdEndAmountIncrease = $earlyBirdEndAmountIncrease;
|
|
$this->participationFeeType = $participationFeeType;
|
|
$this->accountOwner = $accountOwner;
|
|
$this->accountIban = $accountIban;
|
|
$this->payPerDay = $payPerDay;
|
|
$this->payDirect = $payDirect;
|
|
}
|
|
}
|