Proxy.php 777 B

1234567891011121314151617181920212223242526272829303132333435
  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. /**
  10. * @method string getOwnerId()
  11. * @method void setOwnerId(string $ownerId)
  12. * @method string getProxyId()
  13. * @method void setProxyId(string $proxyId)
  14. * @method int getPermissions()
  15. * @method void setPermissions(int $permissions)
  16. */
  17. class Proxy extends Entity {
  18. /** @var string */
  19. protected $ownerId;
  20. /** @var string */
  21. protected $proxyId;
  22. /** @var int */
  23. protected $permissions;
  24. public function __construct() {
  25. $this->addType('ownerId', 'string');
  26. $this->addType('proxyId', 'string');
  27. $this->addType('permissions', 'int');
  28. }
  29. }