<?php

declare(strict_types=1);

namespace App\Modules\Surveys\Application;

use App\Modules\Surveys\Domain\Survey;
use App\Modules\Surveys\Domain\SurveyQuestion;

class SurveyService
{
    /**
     * @return array<int, Survey>
     */
    public function activeSurveys(string $tenantId): array
    {
        return [
            new Survey(
                id: 'survey-demo-1',
                tenantId: $tenantId,
                title: 'Zufriedenheit mit dem Kaffeeangebot',
                status: 'active',
                questions: [
                    new SurveyQuestion(
                        id: 'survey-question-demo-1',
                        surveyId: 'survey-demo-1',
                        question: 'Wie zufrieden bist du mit dem aktuellen Angebot?',
                        questionType: 'scale',
                        required: true,
                    ),
                ],
            ),
        ];
    }
}
