BackupCode.php 592 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\TwoFactorBackupCodes\Db;
  8. use OCP\AppFramework\Db\Entity;
  9. /**
  10. * @method string getUserId()
  11. * @method void setUserId(string $userId)
  12. * @method string getCode()
  13. * @method void setCode(string $code)
  14. * @method int getUsed()
  15. * @method void setUsed(int $code)
  16. */
  17. class BackupCode extends Entity {
  18. /** @var string */
  19. protected $userId;
  20. /** @var string */
  21. protected $code;
  22. /** @var int */
  23. protected $used;
  24. }