-
-
Notifications
You must be signed in to change notification settings - Fork 655
Expand file tree
/
Copy pathUpdateEventDTO.php
More file actions
34 lines (31 loc) · 1.3 KB
/
UpdateEventDTO.php
File metadata and controls
34 lines (31 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
namespace HiEvents\Services\Application\Handlers\Event\DTO;
use HiEvents\DataTransferObjects\AddressDTO;
use HiEvents\DataTransferObjects\Attributes\CollectionOf;
use HiEvents\DataTransferObjects\AttributesDTO;
use HiEvents\DataTransferObjects\BaseDTO;
use HiEvents\DomainObjects\Enums\EventCategory;
use HiEvents\DomainObjects\Status\EventStatus;
use Illuminate\Support\Collection;
class UpdateEventDTO extends BaseDTO
{
public function __construct(
public readonly string $title,
public readonly ?EventCategory $category,
public readonly int $account_id,
public readonly int $id,
public readonly ?string $start_date = null,
public readonly ?string $end_date = null,
public readonly ?string $description = null,
#[CollectionOf(AttributesDTO::class)]
public readonly ?Collection $attributes = null,
public readonly ?string $timezone = null,
public readonly ?string $currency = null,
public readonly ?string $location = null,
public readonly ?AddressDTO $location_details = null,
public readonly ?string $status = EventStatus::DRAFT->name,
public readonly ?int $organizer_id = null,
)
{
}
}