mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
25 lines
461 B
PHP
25 lines
461 B
PHP
<?php
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
namespace OC\Remote;
|
|
|
|
use OCP\Remote\ICredentials;
|
|
|
|
class Credentials implements ICredentials {
|
|
public function __construct(
|
|
private string $user,
|
|
private string $password,
|
|
) {
|
|
}
|
|
|
|
public function getUsername(): string {
|
|
return $this->user;
|
|
}
|
|
|
|
public function getPassword(): string {
|
|
return $this->password;
|
|
}
|
|
}
|