src/Utils/TypeInfo.php
public static function extractTypesFromDirectives(Directive $directive, array $typeMap = [])
    {
        if (is_array($directive->args)) {
            foreach ($directive->args as $arg) {
                $typeMap = self::extractTypes($arg->getType(), $typeMap);
            }
        }

        return $typeMap;
    }
public static function extractTypesFromDirectives(Directive $directive, array $typeMap = [])
    {
        if (is_array($directive->args)) {
            foreach ($directive->args as $arg) {
                $typeMap = self::extractTypes($arg->getType(), $typeMap);
            }
        }

        return $typeMap;
    }
public static function extractTypesFromDirectives ( Directive $ directive , array $ typeMap = [ ] ) { if ( is_array ( $ directive -> args ) ) { foreach ( $ directive -> args as $ arg ) { $ typeMap = self :: extractTypes ( $ arg -> getType ( ) , $ typeMap ) ; } } return $ typeMap ; }
@param Type[] $typeMap

@return Type[]
@param Type [] $typeMap