Automattic\WooCommerce\Vendor\GraphQL\Type\Definition

EnumType::__construct │ public │ WC 1.0

Method of the class: EnumType{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

EnumType::__construct() code WC 11.1.2

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

    $this->config = $config;
}