Proxy.php 814 B

123456789101112131415161718192021222324252627282930313233343536
  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\DAV\CalDAV\Proxy;
  8. use OCP\AppFramework\Db\Entity;
  9. use OCP\DB\Types;
  10. /**
  11. * @method string getOwnerId()
  12. * @method void setOwnerId(string $ownerId)
  13. * @method string getProxyId()
  14. * @method void setProxyId(string $proxyId)
  15. * @method int getPermissions()
  16. * @method void setPermissions(int $permissions)
  17. */
  18. class Proxy extends Entity {
  19. /** @var string */
  20. protected $ownerId;
  21. /** @var string */
  22. protected $proxyId;
  23. /** @var int */
  24. protected $permissions;
  25. public function __construct() {
  26. $this->addType('ownerId', Types::STRING);
  27. $this->addType('proxyId', Types::STRING);
  28. $this->addType('permissions', Types::INTEGER);
  29. }
  30. }