Automattic\WooCommerce\Vendor\GraphQL\Type\Definition

Argument::__constructpublicWC 1.0

Method of the class: Argument{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Argument::__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;
}