Files
moneyplanner/lib/Db/Transaction.php
T
2026-07-05 21:52:31 +02:00

35 lines
764 B
PHP

<?php
namespace OCA\MoneyPlanner\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
class Transaction extends Entity implements JsonSerializable {
protected $userId;
protected $accountFrom;
protected $accountTo;
protected $group;
protected $category;
protected $balance;
protected $date;
protected $freqNum;
protected $freqType;
public function jsonSerialize() {
return [
'id' => $this->id,
'userId' => $this->userId,
'accountFrom' => $this->accountFrom,
'accountTo' => $this->accountTo,
'group' => $this->group,
'category' => $this->category,
'balance' => $this->balance,
'date' => $this->date,
'freqNum' => $this->freqNum,
'freqType' => $this->freqType
];
}
}