public function __construct(array $config = []) { if (empty($config)) { $config['name'] = $this->getName(); $config['interfaces'] = $this->getInterfaces(); } $this->config = new ObjectTypeConfig($config, $this); }