<?php

declare(strict_types=1);

namespace App\Modules\Surveys\Domain;

class SurveyQuestion
{
    public function __construct(
        private readonly string $id,
        private readonly string $surveyId,
        private readonly string $question,
        private readonly string $questionType,
        private readonly bool $required,
        private readonly array $options = [],
    ) {
    }

    public function id(): string
    {
        return $this->id;
    }

    public function surveyId(): string
    {
        return $this->surveyId;
    }

    public function question(): string
    {
        return $this->question;
    }

    public function questionType(): string
    {
        return $this->questionType;
    }

    public function required(): bool
    {
        return $this->required;
    }

    /**
     * @return array<int, string>
     */
    public function options(): array
    {
        return $this->options;
    }
}
