<?php

declare(strict_types=1);

namespace KupShop\GraphQLBundle\ApiShared\Types\Product\Variation;

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

#[Type]
class VariationLabel
{
    public function __construct(private array $label)
    {
    }

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

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