<?php

namespace App\Imports\Blog;

class BlogArticleData
{
    /**
     * @param array<int, array{slug: string, name: string}> $categories
     * @param array<int, string> $imageUrls
     * @param array<int, array<string, ?string>> $contentElementValues
     *   Keyed by template element id, then content element field slug.
     */
    public function __construct(
        public readonly string $title,
        public readonly string $slug,
        public readonly ?string $body = null,
        public readonly ?string $excerpt = null,
        public readonly ?string $featuredImageUrl = null,
        public readonly ?string $publishedAt = null,
        public readonly string $status = 'published',
        public readonly string $pageCategory = 'blog',
        public readonly string $templateSlug = 'blog-article',
        public readonly array $categories = [],
        public readonly array $imageUrls = [],
        public readonly ?string $seoTitle = null,
        public readonly ?string $seoDescription = null,
        public readonly ?string $authorName = null,
        public readonly array $contentElementValues = [],
        public readonly ?string $dateFormat = null,
    ) {
        //
    }
}
