Automattic\WooCommerce\Vendor\GraphQL\Type\Definition

InterfaceType::__constructpublicWC 1.0

Method of the class: InterfaceType{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

InterfaceType::__construct() code WC 10.9.4

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;
}