Automattic\WooCommerce\Vendor\GraphQL\Type

Schema::__construct │ public │ WC 1.0

Method of the class: Schema{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Schema::__construct() code WC 11.1.2

public function __construct($config)
{
    if (is_array($config)) {
        $config = SchemaConfig::create($config);
    }

    // If this schema was built from a source known to be valid, then it may be
    // marked with assumeValid to avoid an additional type system validation.
    if ($config->getAssumeValid()) {
        $this->validationErrors = [];
    }

    $this->description = $config->description;
    $this->astNode = $config->astNode;
    $this->extensionASTNodes = $config->extensionASTNodes;

    $this->config = $config;
}