public function __construct(FetcherInterface $fetcher) { $this->fetcher = $fetcher; $this->type = (new NodeInterfaceType())->setFetcher($this->fetcher); parent::__construct([]); }
/** * @param string $typeName */ public function __construct($typeName) { $this->typeName = $typeName; $config = ['type' => $this->getType(), 'name' => $this->getName(), 'resolve' => [$this, 'resolve']]; parent::__construct($config); }