<?php

namespace humhub\modules\kickoff\adapters;

use humhub\modules\kickoff\models\Competition;
use humhub\modules\kickoff\models\Game;
use Yii;

class ManualAdapter implements CompetitionDataAdapter
{
    public const KEY = 'manual';

    public function getKey(): string
    {
        return self::KEY;
    }

    public function getLabel(): string
    {
        return Yii::t('KickoffModule.base', 'Manual entry');
    }

    public function isConfigured(): bool
    {
        return true;
    }

    public function listAvailable(): array
    {
        return [];
    }

    public function syncFixtures(Competition $competition): SyncReport
    {
        return new SyncReport();
    }

    public function syncResults(Competition $competition): SyncReport
    {
        return new SyncReport();
    }

    public function supportsLive(): bool
    {
        return false;
    }

    public function getExpectedStages(): array
    {
        // Conservative default — admin defines whatever stages they like.
        return [Game::STAGE_GROUP];
    }

    public function getEstimatedStageDate(Competition $competition, string $stage): ?string
    {
        return null;
    }

    public function getLiveSyncIntervalMinutes(): ?int
    {
        return null;
    }
}
