<?php

declare (strict_types=1);
namespace PoPCMSSchema\TaxonomyMutations\TypeResolvers\ObjectType;

use PoPCMSSchema\TaxonomyMutations\RelationalTypeDataLoaders\ObjectType\TaxonomyIsNotValidErrorPayloadObjectTypeDataLoader;
use PoPSchema\SchemaCommons\TypeResolvers\ObjectType\AbstractErrorPayloadObjectTypeResolver;
use PoP\ComponentModel\RelationalTypeDataLoaders\RelationalTypeDataLoaderInterface;
/** @internal */
class TaxonomyIsNotValidErrorPayloadObjectTypeResolver extends AbstractErrorPayloadObjectTypeResolver
{
    private ?TaxonomyIsNotValidErrorPayloadObjectTypeDataLoader $taxonomyIsNotValidErrorPayloadObjectTypeDataLoader = null;
    protected final function getTaxonomyIsNotValidErrorPayloadObjectTypeDataLoader() : TaxonomyIsNotValidErrorPayloadObjectTypeDataLoader
    {
        if ($this->taxonomyIsNotValidErrorPayloadObjectTypeDataLoader === null) {
            /** @var TaxonomyIsNotValidErrorPayloadObjectTypeDataLoader */
            $taxonomyIsNotValidErrorPayloadObjectTypeDataLoader = $this->instanceManager->getInstance(TaxonomyIsNotValidErrorPayloadObjectTypeDataLoader::class);
            $this->taxonomyIsNotValidErrorPayloadObjectTypeDataLoader = $taxonomyIsNotValidErrorPayloadObjectTypeDataLoader;
        }
        return $this->taxonomyIsNotValidErrorPayloadObjectTypeDataLoader;
    }
    public function getTypeName() : string
    {
        return 'TaxonomyIsNotValidErrorPayload';
    }
    public function getTypeDescription() : ?string
    {
        return $this->__('Error payload for: "The requested taxonomy does not exist"', 'taxonomy-mutations');
    }
    public function getRelationalTypeDataLoader() : RelationalTypeDataLoaderInterface
    {
        return $this->getTaxonomyIsNotValidErrorPayloadObjectTypeDataLoader();
    }
}
