protected static function extendArgs(array $args) : array
    {
        return Utils::keyValMap(
            $args,
            static function (FieldArgument $arg) {
                return $arg->name;
            },
            static function (FieldArgument $arg) {
                $def = [
                    'type'        => static::extendType($arg->getType()),
                    'description' => $arg->description,
                    'astNode'     => $arg->astNode,
                ];

                if ($arg->defaultValueExists()) {
                    $def['defaultValue'] = $arg->defaultValue;
                }

                return $def;
            }
        );
    }
protected static function extendArgs(array $args) : array
    {
        return Utils::keyValMap(
            $args,
            static function (FieldArgument $arg) {
                return $arg->name;
            },
            static function (FieldArgument $arg) {
                $def = [
                    'type'        => static::extendType($arg->getType()),
                    'description' => $arg->description,
                    'astNode'     => $arg->astNode,
                ];

                if ($arg->defaultValueExists()) {
                    $def['defaultValue'] = $arg->defaultValue;
                }

                return $def;
            }
        );
    }
protected static function extendArgs ( array $ args ) : array { return Utils :: keyValMap ( $ args , static function ( FieldArgument $ arg ) { return $ arg -> name ; } , static function ( FieldArgument $ arg ) { $ def = [ 'type' => static :: extendType ( $ arg -> getType ( ) ) , 'description' => $ arg -> description , 'astNode' => $ arg -> astNode , ] ; if ( $ arg -> defaultValueExists ( ) ) { $ def [ 'defaultValue' ] = $ arg -> defaultValue ; } return $ def ; } ) ; }
@param FieldArgument[] $args

@return mixed[]
@param FieldArgument [] $args