<?php

declare (strict_types=1);
namespace GraphQLByPoP\GraphQLServer\ObjectFacades;

use PoP\Root\App;
use GraphQLByPoP\GraphQLServer\ObjectModels\QueryRoot;
/** @internal */
class QueryRootObjectFacade
{
    public static function getInstance() : QueryRoot
    {
        $containerBuilderFactory = App::getContainer();
        /** @var QueryRoot */
        return $containerBuilderFactory->get(QueryRoot::class);
    }
}
