GraphQL\Validator\Rules\PossibleFragmentSpreads::getFragmentType PHP Method

getFragmentType() private method

private getFragmentType ( ValidationContext $context, $name )
$context GraphQL\Validator\ValidationContext
    private function getFragmentType(ValidationContext $context, $name)
    {
        $frag = $context->getFragment($name);
        return $frag ? TypeInfo::typeFromAST($context->getSchema(), $frag->typeCondition) : null;
    }