<?php

declare(strict_types=1);

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

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

#[Type]
class EditableContentMutateResponse extends MutateResponse
{
    #[Field(description: 'Aktualizovaný editovatelný obsah.')]
    public EditableContent $editableContent;

    public function __construct(bool $result, EditableContent $editableContent)
    {
        parent::__construct($result);

        $this->editableContent = $editableContent;
    }
}
