Page MenuHomePhabricator

final class PhutilGitURI
Arcanist Technical Documentation ()

Parser for the alternate URI scheme used by SCP and Git, which look like this:

user@host:path

(Git calls these URIs "scp-style" in its documentation, but most users and developers are likely to run into them in the context of Git and I couldn't find an official name or specification, so I'm going with "GitURI".)

Note that these URIs can not be transformed into normal URIs because the path is interpreted as relative on the remote, rather than absolute (as with normal URIs).

Methods

public function __construct($uri)

This method is not documented.
Parameters
$uri
Return
this//Implicit.//

private static function parseURI($uri)

This method is not documented.
Parameters
$uri
Return
wild

public function __toString()

This method is not documented.
Return
wild

public function setDomain($domain)

This method is not documented.
Parameters
$domain
Return
wild

public function getDomain()

This method is not documented.
Return
wild

public function setPath($path)

This method is not documented.
Parameters
$path
Return
wild

public function getPath()

This method is not documented.
Return
wild

public function setUser($user)

This method is not documented.
Parameters
$user
Return
wild

public function getUser()

This method is not documented.
Return
wild