Automattic\WooCommerce\Vendor\GraphQL\Type\Definition
Directive::__construct
Method of the class: Directive{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Directive = new Directive(); $Directive->__construct( $config );
- $config(array) (required)
- .
Directive::__construct() Directive:: construct code WC 10.9.1
public function __construct(array $config)
{
$this->name = $config['name'];
$this->description = $config['description'] ?? null;
$this->args = isset($config['args'])
? Argument::listFromConfig($config['args'])
: [];
$this->isRepeatable = $config['isRepeatable'] ?? false;
$this->locations = $config['locations'];
$this->astNode = $config['astNode'] ?? null;
$this->config = $config;
}