nc-vue-agency/lib/Db/AgencyUser.php

24 lines
461 B
PHP

<?php
namespace OCA\Agency\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
class AgencyUser extends Entity implements JsonSerializable {
protected $agency;
protected $user;
public function __construct() {
$this->addType('id','integer');
}
public function jsonSerialize() {
return [
'id' => $this->id,
'agency' => $this->agency,
'user' => $this->user,
];
}
}