GraphQL\Type\Introspection::_inputValue PHP Method

_inputValue() public static method

public static _inputValue ( )
    public static function _inputValue()
    {
        if (!isset(self::$map['__InputValue'])) {
            self::$map['__InputValue'] = new ObjectType(['name' => '__InputValue', 'description' => 'Arguments provided to Fields or Directives and the input fields of an ' . 'InputObject are represented as Input Values which describe their type ' . 'and optionally a default value.', 'fields' => function () {
                return ['name' => ['type' => Type::nonNull(Type::string())], 'description' => ['type' => Type::string()], 'type' => ['type' => Type::nonNull(self::_type()), 'resolve' => function ($value) {
                    return method_exists($value, 'getType') ? $value->getType() : $value->type;
                }], 'defaultValue' => ['type' => Type::string(), 'description' => 'A GraphQL-formatted string representing the default value for this input value.', 'resolve' => function ($inputValue) {
                    /** @var FieldArgument|InputObjectField $inputValue */
                    return !$inputValue->defaultValueExists() ? null : Printer::doPrint(AST::astFromValue($inputValue->defaultValue, $inputValue->getType()));
                }]];
            }]);
        }
        return self::$map['__InputValue'];
    }