Automattic\WooCommerce\Vendor\GraphQL\Type\Definition

EnumValueDefinition::__constructpublicWC 1.0

Method of the class: EnumValueDefinition{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

EnumValueDefinition::__construct() code WC 10.9.4

public function __construct(array $config)
{
    $this->name = $config['name'];
    $this->value = $config['value'] ?? null;
    $this->deprecationReason = $config['deprecationReason'] ?? null;
    $this->description = $config['description'] ?? null;
    $this->astNode = $config['astNode'] ?? null;

    $this->config = $config;
}