<?php

declare(strict_types=1);

namespace KupShop\GraphQLBundle\ApiAdmin\Types\Content\Article;

use TheCodingMachine\GraphQLite\Annotations\Field;
use TheCodingMachine\GraphQLite\Annotations\Type;

#[Type]
class ArticleSection
{
    public function __construct(public array $section)
    {
    }

    #[Field(description: 'ID.')]
    public function getId(): int
    {
        return $this->section['id'];
    }

    #[Field(description: 'Název.')]
    public function getName(): string
    {
        return $this->section['name'];
    }
}
