Gets the user info.
string|null A user name if any and, optionally, scheme-specific information about how to gain authorization to access the server
public function getUserInfo() : ?string { $userinfo = $this->getUser(); $pass = $this->getPassword(); if ('' != $pass) { $userinfo .= ":{$pass}"; } return $userinfo; }