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