Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

1.1 KB
Raw Blame
<?php

namespace HiEvents\Services\Application\Handlers\Event\DTO;

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 int $account_id,
        public readonly int $id,
        public readonly ?EventCategory $category = null,
        public readonly ?string $start_date = null,
        public readonly ?string $end_date = null,
        public readonly ?string $description = null,
        public readonly bool $description_provided = true,
        #[CollectionOf(AttributesDTO::class)]
        public readonly ?Collection $attributes = null,
        public readonly ?string $timezone = null,
        public readonly ?string $currency = null,
        public readonly ?string $status = EventStatus::DRAFT->name,
    ) {}
}