Jyxo\Svn\Client::getPasswordString PHP 메소드

getPasswordString() 보호된 메소드

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
리턴 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 '';
        }
    }