Direct.php 934 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\DAV\Db;
  8. use OCP\AppFramework\Db\Entity;
  9. use OCP\DB\Types;
  10. /**
  11. * @method string getUserId()
  12. * @method void setUserId(string $userId)
  13. * @method int getFileId()
  14. * @method void setFileId(int $fileId)
  15. * @method string getToken()
  16. * @method void setToken(string $token)
  17. * @method int getExpiration()
  18. * @method void setExpiration(int $expiration)
  19. */
  20. class Direct extends Entity {
  21. /** @var string */
  22. protected $userId;
  23. /** @var int */
  24. protected $fileId;
  25. /** @var string */
  26. protected $token;
  27. /** @var int */
  28. protected $expiration;
  29. public function __construct() {
  30. $this->addType('userId', Types::STRING);
  31. $this->addType('fileId', Types::INTEGER);
  32. $this->addType('token', Types::STRING);
  33. $this->addType('expiration', Types::INTEGER);
  34. }
  35. }