<?php

namespace KupShop\GraphQLBundle\ApiAdmin\Types\Catalog\Section\Response;

use KupShop\GraphQLBundle\ApiAdmin\Types\MutateResponse;
use KupShop\GraphQLBundle\ApiShared\Types\Section\Section;
use TheCodingMachine\GraphQLite\Annotations\Field;
use TheCodingMachine\GraphQLite\Annotations\Type;

/**
 * Návratová hodnota pro aktualizaci sekce a jejích atributů.
 */
#[Type]
class SectionMutateResponse extends MutateResponse
{
    public function __construct(
        bool $result,
        #[Field(description: 'Aktualizovaný objekt sekce.')] public Section $section)
    {
        parent::__construct($result);
    }
}
