public static function parse(string $type): self
    {
        static $parser = null;
        if (null === $parser) {
            $parser = new Parser();
        }

        return $parser->parse($type);
    }
public static function parse(string $type): self
    {
        static $parser = null;
        if (null === $parser) {
            $parser = new Parser();
        }

        return $parser->parse($type);
    }
public static function parse ( string $ type ) : self { static $ parser = null ; if ( null === $ parser ) { $ parser = new Parser ( ) ; } return $ parser -> parse ( $ type ) ; }
Parse a type string and return a Type instance.

@param $type

@return Type
Parse a type string and return a Type instance .