/** * Get the attributes from the container. * * @return array */ public function getAttributes() { $attributes = parent::getAttributes(); $resolver = $this->getTypeResolver(); if (isset($resolver)) { $attributes['resolveType'] = $resolver; } return $attributes; }
/** * Special fields present on this connection type. * * @param $name * @param string $type */ public function __construct($name, $type) { parent::__construct(); $this->name = $name; $this->type = $type; }