Jyxo\Svn\Client::getPasswordString PHP Method

getPasswordString() protected method

Password given in the argument has precedence over the value stored in object's attribute. Returns empty string if no password is set in any way.
protected getPasswordString ( mixed $password = '' ) : string
$password mixed Password
return string
    protected function getPasswordString($password = '') : string
    {
        if (false === $password) {
            return '';
        } elseif (!empty($password)) {
            return ' --password ' . escapeshellarg($password);
        } elseif (!empty($this->password)) {
            return ' --password ' . escapeshellarg($this->password);
        } else {
            return '';
        }
    }