Automattic\WooCommerce\Vendor\GraphQL\Type\Definition
ObjectType::__construct
Method of the class: ObjectType{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ObjectType = new ObjectType(); $ObjectType->__construct( $config );
- $config(array) (required)
- .
ObjectType::__construct() ObjectType:: construct code WC 11.0.1
public function __construct(array $config)
{
$this->name = $config['name'] ?? $this->inferName();
$this->description = $config['description'] ?? null;
$this->resolveFieldFn = $config['resolveField'] ?? null;
$this->argsMapper = $config['argsMapper'] ?? null;
$this->astNode = $config['astNode'] ?? null;
$this->extensionASTNodes = $config['extensionASTNodes'] ?? [];
$this->config = $config;
}