src/Structure.php
public function getType($type_name)
    {
        if (isset($this->types[$type_name])) {
            return $this->types[$type_name];
        } else {
            throw new InvalidArgumentException("Type '$type_name' not found");
        }
    }
public function getType($type_name)
    {
        if (isset($this->types[$type_name])) {
            return $this->types[$type_name];
        } else {
            throw new InvalidArgumentException("Type '$type_name' not found");
        }
    }
public function getType ( $ type_name ) { if ( isset ( $ this -> types [ $ type_name ] ) ) { return $ this -> types [ $ type_name ] ; } else { throw new InvalidArgumentException ( "Type '$type_name' not found" ) ; } }
Return type by type name.

@param  string $type_name
@return Type
Return type by type name .