1
0
Fork 0
nc_ext_dav_push/lib/Db/WebPushSubscription.php
2024-07-23 02:06:10 +02:00

23 lines
No EOL
449 B
PHP

<?php
namespace OCA\DavPush\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
class WebPushSubscription extends Entity implements JsonSerializable {
protected $subscriptionId;
protected $pushResource;
public function __construct() {
$this->addType('subscriptionId','integer');
}
public function jsonSerialize(): array {
return [
'subscriptionId' => $this->subscriptionId,
'pushResource' => $this->pushResource,
];
}
}