2017-09-26 11:11:58 -04:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2026-02-09 04:53:58 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2017-09-26 11:11:58 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2017-09-26 11:11:58 -04:00
|
|
|
*/
|
|
|
|
|
namespace OC\Remote;
|
|
|
|
|
|
2017-10-04 10:21:50 -04:00
|
|
|
use OCP\Remote\ICredentials;
|
|
|
|
|
|
|
|
|
|
class Credentials implements ICredentials {
|
2025-11-17 09:32:54 -05:00
|
|
|
public function __construct(
|
2025-11-24 03:17:34 -05:00
|
|
|
private string $user,
|
|
|
|
|
private string $password,
|
2025-11-17 09:32:54 -05:00
|
|
|
) {
|
2017-09-26 11:11:58 -04:00
|
|
|
}
|
|
|
|
|
|
2025-11-24 03:17:34 -05:00
|
|
|
public function getUsername(): string {
|
2017-09-26 11:11:58 -04:00
|
|
|
return $this->user;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-24 03:17:34 -05:00
|
|
|
public function getPassword(): string {
|
2017-09-26 11:11:58 -04:00
|
|
|
return $this->password;
|
|
|
|
|
}
|
|
|
|
|
}
|