Credentials.php 657 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OC\Remote;
  7. use OCP\Remote\ICredentials;
  8. class Credentials implements ICredentials {
  9. /** @var string */
  10. private $user;
  11. /** @var string */
  12. private $password;
  13. /**
  14. * @param string $user
  15. * @param string $password
  16. */
  17. public function __construct($user, $password) {
  18. $this->user = $user;
  19. $this->password = $password;
  20. }
  21. /**
  22. * @return string
  23. */
  24. public function getUsername() {
  25. return $this->user;
  26. }
  27. /**
  28. * @return string
  29. */
  30. public function getPassword() {
  31. return $this->password;
  32. }
  33. }