<?php

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

use PoPCMSSchema\MetaMutations\RelationalTypeDataLoaders\ObjectType\EntityMetaKeyWithValueDoesNotExistErrorPayloadObjectTypeDataLoader;
use PoPSchema\SchemaCommons\TypeResolvers\ObjectType\AbstractErrorPayloadObjectTypeResolver;
use PoP\ComponentModel\RelationalTypeDataLoaders\RelationalTypeDataLoaderInterface;
/** @internal */
class EntityMetaKeyWithValueDoesNotExistErrorPayloadObjectTypeResolver extends AbstractErrorPayloadObjectTypeResolver
{
    private ?EntityMetaKeyWithValueDoesNotExistErrorPayloadObjectTypeDataLoader $entityMetaKeyWithValueDoesNotExistErrorPayloadObjectTypeDataLoader = null;
    protected final function getEntityMetaKeyWithValueDoesNotExistErrorPayloadObjectTypeDataLoader() : EntityMetaKeyWithValueDoesNotExistErrorPayloadObjectTypeDataLoader
    {
        if ($this->entityMetaKeyWithValueDoesNotExistErrorPayloadObjectTypeDataLoader === null) {
            /** @var EntityMetaKeyWithValueDoesNotExistErrorPayloadObjectTypeDataLoader */
            $entityMetaKeyWithValueDoesNotExistErrorPayloadObjectTypeDataLoader = $this->instanceManager->getInstance(EntityMetaKeyWithValueDoesNotExistErrorPayloadObjectTypeDataLoader::class);
            $this->entityMetaKeyWithValueDoesNotExistErrorPayloadObjectTypeDataLoader = $entityMetaKeyWithValueDoesNotExistErrorPayloadObjectTypeDataLoader;
        }
        return $this->entityMetaKeyWithValueDoesNotExistErrorPayloadObjectTypeDataLoader;
    }
    public function getTypeName() : string
    {
        return 'EntityMetaKeyWithValueDoesNotExistErrorPayload';
    }
    public function getTypeDescription() : ?string
    {
        return $this->__('Error payload for: "The taxonomy term doesn\'t have a meta entry with that key"', 'taxonomymeta-mutations');
    }
    public function getRelationalTypeDataLoader() : RelationalTypeDataLoaderInterface
    {
        return $this->getEntityMetaKeyWithValueDoesNotExistErrorPayloadObjectTypeDataLoader();
    }
}
