Direct.php 888 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. /**
  10. * @method string getUserId()
  11. * @method void setUserId(string $userId)
  12. * @method int getFileId()
  13. * @method void setFileId(int $fileId)
  14. * @method string getToken()
  15. * @method void setToken(string $token)
  16. * @method int getExpiration()
  17. * @method void setExpiration(int $expiration)
  18. */
  19. class Direct extends Entity {
  20. /** @var string */
  21. protected $userId;
  22. /** @var int */
  23. protected $fileId;
  24. /** @var string */
  25. protected $token;
  26. /** @var int */
  27. protected $expiration;
  28. public function __construct() {
  29. $this->addType('userId', 'string');
  30. $this->addType('fileId', 'int');
  31. $this->addType('token', 'string');
  32. $this->addType('expiration', 'int');
  33. }
  34. }