21 lines
365 B
PHP
21 lines
365 B
PHP
<?php
|
|
namespace OCA\MoneyPlanner\Db;
|
|
|
|
use JsonSerializable;
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
|
|
class Account extends Entity implements JsonSerializable {
|
|
|
|
protected $name;
|
|
protected $userId;
|
|
|
|
public function jsonSerialize() {
|
|
return [
|
|
'id' => $this->id,
|
|
'userId' => $this->userId,
|
|
'name' => $this->name
|
|
];
|
|
}
|
|
}
|
|
?>
|