public function getType($name)
    {
        if (isset($this->types[$name])) {
            return $this->types[$name];
        } else {
            throw new InvalidArgumentException("Type '$name' is not a registered GraphQL type");
        }
    }
public function getType($name)
    {
        if (isset($this->types[$name])) {
            return $this->types[$name];
        } else {
            throw new InvalidArgumentException("Type '$name' is not a registered GraphQL type");
        }
    }
public function getType ( $ name ) { if ( isset ( $ this -> types [ $ name ] ) ) { return $ this -> types [ $ name ] ; } else { throw new InvalidArgumentException ( "Type '$name' is not a registered GraphQL type" ) ; } }
Return a type definition by name

@param string $name
@return Type
Return a type definition by name