<?php
namespace OCA\Chores\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
class Invite extends Entity implements JsonSerializable {
protected $teamId;
protected $teamName;
protected $userId;
public function __construct() {
$this->addType('id', 'string');
$this->addType('teamId', 'integer');
$this->addType('teamName', 'string');
$this->addType('userId', 'string');
}
public function jsonSerialize() {
return [
'inviteId' => $this->id,
'teamId' => $this->teamId,
'teamName' => $this->teamName,
'userId' => $this->userId,
];
}
}