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 ⭐️

622 B
Raw Blame
<?php

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

use HiEvents\DataTransferObjects\BaseDTO;
use HiEvents\DomainObjects\Enums\QuestionBelongsTo;
use HiEvents\DomainObjects\Enums\QuestionTypeEnum;

class UpsertQuestionDTO extends BaseDTO
{
    public function __construct(
        public string $title,
        public QuestionTypeEnum $type,
        public bool $required,
        public ?array $options,
        public int $event_id,
        public array $product_ids,
        public bool $is_hidden,
        public QuestionBelongsTo $belongs_to,
        public ?string $description = null,
    ) {}
}