summaryrefslogtreecommitdiffstats
path: root/apps/files_external/3rdparty/icewind/smb/src/BasicAuth.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/3rdparty/icewind/smb/src/BasicAuth.php')
-rw-r--r--apps/files_external/3rdparty/icewind/smb/src/BasicAuth.php21
1 files changed, 7 insertions, 14 deletions
diff --git a/apps/files_external/3rdparty/icewind/smb/src/BasicAuth.php b/apps/files_external/3rdparty/icewind/smb/src/BasicAuth.php
index 9d7f9b5d306..04004e6ebd8 100644
--- a/apps/files_external/3rdparty/icewind/smb/src/BasicAuth.php
+++ b/apps/files_external/3rdparty/icewind/smb/src/BasicAuth.php
@@ -24,41 +24,34 @@ namespace Icewind\SMB;
class BasicAuth implements IAuth {
/** @var string */
private $username;
- /** @var string */
+ /** @var string|null */
private $workgroup;
/** @var string */
private $password;
- /**
- * BasicAuth constructor.
- *
- * @param string $username
- * @param string $workgroup
- * @param string $password
- */
- public function __construct($username, $workgroup, $password) {
+ public function __construct(string $username, ?string $workgroup, string $password) {
$this->username = $username;
$this->workgroup = $workgroup;
$this->password = $password;
}
- public function getUsername() {
+ public function getUsername(): ?string {
return $this->username;
}
- public function getWorkgroup() {
+ public function getWorkgroup(): ?string {
return $this->workgroup;
}
- public function getPassword() {
+ public function getPassword(): ?string {
return $this->password;
}
- public function getExtraCommandLineArguments() {
+ public function getExtraCommandLineArguments(): string {
return ($this->workgroup) ? '-W ' . escapeshellarg($this->workgroup) : '';
}
- public function setExtraSmbClientOptions($smbClientState) {
+ public function setExtraSmbClientOptions($smbClientState): void {
// noop
}
}