Automattic\WooCommerce\Vendor\GraphQL\Type\Definition
Argument::__construct
Method of the class: Argument{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Argument = new Argument(); $Argument->__construct( $config );
- $config(array) (required)
- .
Argument::__construct() Argument:: construct code WC 10.9.1
public function __construct(array $config)
{
$this->name = $config['name'];
$this->defaultValue = $config['defaultValue'] ?? null;
$this->description = $config['description'] ?? null;
$this->deprecationReason = $config['deprecationReason'] ?? null;
// Do nothing for type, it is lazy loaded in getType()
$this->astNode = $config['astNode'] ?? null;
$this->config = $config;
}