2019-08-06 07:10:04 -04:00
|
|
|
<?php
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2019-08-06 07:10:04 -04:00
|
|
|
declare(strict_types=1);
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2019-08-06 07:10:04 -04:00
|
|
|
/**
|
2024-05-27 11:39:07 -04:00
|
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2019-08-06 07:10:04 -04:00
|
|
|
*/
|
2019-08-06 07:40:52 -04:00
|
|
|
namespace OCA\DAV\CalDAV\Proxy;
|
2019-08-06 07:10:04 -04:00
|
|
|
|
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
2024-09-19 09:46:20 -04:00
|
|
|
use OCP\DB\Types;
|
2019-08-06 07:10:04 -04:00
|
|
|
|
2019-08-06 07:40:52 -04:00
|
|
|
/**
|
|
|
|
|
* @method string getOwnerId()
|
|
|
|
|
* @method void setOwnerId(string $ownerId)
|
|
|
|
|
* @method string getProxyId()
|
|
|
|
|
* @method void setProxyId(string $proxyId)
|
|
|
|
|
* @method int getPermissions()
|
|
|
|
|
* @method void setPermissions(int $permissions)
|
|
|
|
|
*/
|
2019-08-06 07:10:04 -04:00
|
|
|
class Proxy extends Entity {
|
|
|
|
|
|
|
|
|
|
/** @var string */
|
|
|
|
|
protected $ownerId;
|
|
|
|
|
/** @var string */
|
|
|
|
|
protected $proxyId;
|
|
|
|
|
/** @var int */
|
2019-08-06 07:40:52 -04:00
|
|
|
protected $permissions;
|
2019-08-06 07:10:04 -04:00
|
|
|
|
|
|
|
|
public function __construct() {
|
2024-09-19 09:46:20 -04:00
|
|
|
$this->addType('ownerId', Types::STRING);
|
|
|
|
|
$this->addType('proxyId', Types::STRING);
|
|
|
|
|
$this->addType('permissions', Types::INTEGER);
|
2019-08-06 07:10:04 -04:00
|
|
|
}
|
|
|
|
|
}
|