<?php

declare(strict_types=1);

namespace App\Services\Sitemaps\Builders;

use App\Services\Sitemaps\AbstractSitemapBuilder;
use App\Services\Sitemaps\SitemapUrlBuilder;
use DateTimeInterface;

final class ForumIndexSitemapBuilder extends AbstractSitemapBuilder
{
    public function __construct(private readonly SitemapUrlBuilder $urls)
    {
    }

    public function name(): string
    {
        return 'forum-index';
    }

    public function items(): array
    {
        return [$this->urls->forumIndex()];
    }

    public function lastModified(): ?DateTimeInterface
    {
        return null;
    }
}