Jyxo\Svn\Client::getPasswordString PHP Méthode

getPasswordString() protected méthode

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
Résultat 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 '';
        }
    }