GraphQL\Tests\Executor\LazyInterfaceTest::getLazyInterfaceType PHP Method

getLazyInterfaceType() protected method

Returns the LazyInterface
protected getLazyInterfaceType ( ) : InterfaceType
return GraphQL\Type\Definition\InterfaceType
    protected function getLazyInterfaceType()
    {
        if (!$this->lazyInterface) {
            $this->lazyInterface = new InterfaceType(['name' => 'LazyInterface', 'resolveType' => function () {
                return $this->getTestObjectType();
            }, 'resolve' => function () {
                return [];
            }]);
        }
        return $this->lazyInterface;
    }