TransferOwnership.php 938 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2019 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 setSourceUser(string $uid)
  11. * @method string getSourceUser()
  12. * @method void setTargetUser(string $uid)
  13. * @method string getTargetUser()
  14. * @method void setFileId(int $fileId)
  15. * @method int getFileId()
  16. * @method void setNodeName(string $name)
  17. * @method string getNodeName()
  18. */
  19. class TransferOwnership extends Entity {
  20. /** @var string */
  21. protected $sourceUser;
  22. /** @var string */
  23. protected $targetUser;
  24. /** @var integer */
  25. protected $fileId;
  26. /** @var string */
  27. protected $nodeName;
  28. public function __construct() {
  29. $this->addType('sourceUser', 'string');
  30. $this->addType('targetUser', 'string');
  31. $this->addType('fileId', 'integer');
  32. $this->addType('nodeName', 'string');
  33. }
  34. }