<?php
namespace OCA\Chores\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
class Team extends Entity implements JsonSerializable {
protected $teamName;
protected $ownerUserId;
protected $content;
protected $members;
protected $invites;
public function __construct() {
$this->addType('id', 'integer');
}
public function jsonSerialize() {
return [
'id' => $this->id,
'name' => $this->teamName,
'owner' => $this->ownerUserId,
'members' => $this->members,
'invites' => $this->invites,
];
}
}