Automattic\WooCommerce\Vendor\GraphQL\Type\Definition

InputObjectField::__constructpublicWC 1.0

Method of the class: InputObjectField{}

No Hooks.

Returns

null. Nothing (null).

Usage

$InputObjectField = new InputObjectField();
$InputObjectField->__construct( $config );
$config(array) (required)
.

InputObjectField::__construct() code WC 10.9.1

public function __construct(array $config)
{
    $this->name = $config['name'];
    $this->defaultValue = $config['defaultValue'] ?? null;
    $this->description = $config['description'] ?? null;
    $this->deprecationReason = $config['deprecationReason'] ?? null;
    // Do nothing for type, it is lazy loaded in getType()
    $this->astNode = $config['astNode'] ?? null;

    $this->config = $config;
}