OpenLocalEditor.php 946 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\Files\Db;
  8. use OCP\AppFramework\Db\Entity;
  9. /**
  10. * @method void setUserId(string $userId)
  11. * @method string getUserId()
  12. * @method void setPathHash(string $pathHash)
  13. * @method string getPathHash()
  14. * @method void setExpirationTime(int $expirationTime)
  15. * @method int getExpirationTime()
  16. * @method void setToken(string $token)
  17. * @method string getToken()
  18. */
  19. class OpenLocalEditor extends Entity {
  20. /** @var string */
  21. protected $userId;
  22. /** @var string */
  23. protected $pathHash;
  24. /** @var int */
  25. protected $expirationTime;
  26. /** @var string */
  27. protected $token;
  28. public function __construct() {
  29. $this->addType('userId', 'string');
  30. $this->addType('pathHash', 'string');
  31. $this->addType('expirationTime', 'integer');
  32. $this->addType('token', 'string');
  33. }
  34. }