src/Schema/TypeRegistry.php
public function get(string $typeName): Type
    {
        if (! isset($this->types[$typeName])) {
            throw new InvariantViolation("No type {$typeName} was registered.");
        }

        return $this->types[$typeName];
    }
public function get(string $typeName): Type
    {
        if (! isset($this->types[$typeName])) {
            throw new InvariantViolation("No type {$typeName} was registered.");
        }

        return $this->types[$typeName];
    }
public function get ( string $ typeName ) : Type { if ( ! isset ( $ this -> types [ $ typeName ] ) ) { throw new InvariantViolation ( "No type {$typeName} was registered." ) ; } return $ this -> types [ $ typeName ] ; }
Resolve type instance by name.

@param  string  $typeName
@return \GraphQL\Type\Definition\Type

@throws \GraphQL\Error\InvariantViolation
Resolve type instance by name .