src/Schema/TypeRegistry.php
public function register(Type $type): self
    {
        $this->types[$type->name] = $type;

        return $this;
    }
public function register(Type $type): self
    {
        $this->types[$type->name] = $type;

        return $this;
    }
public function register ( Type $ type ) : self { $ this -> types [ $ type -> name ] = $ type ; return $ this ; }
Register type with registry.

@param  \GraphQL\Type\Definition\Type  $type
@return $this
Register type with registry .