Automattic\WooCommerce\Vendor\GraphQL\Type\Definition

UnionType::__constructpublicWC 1.0

Method of the class: UnionType{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

UnionType::__construct() code WC 10.9.1

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

    $this->config = $config;
}