oms-Accounting/Models/Creditor.php
Dennis Eichhorn 9894e8eb80
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled
fix permissions
2025-04-02 14:15:04 +00:00

64 lines
1005 B
PHP

<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Accounting\Models
* @copyright Dennis Eichhorn
* @license OMS License 2.2
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
namespace Modules\Accounting\Models;
use Modules\Admin\Models\Account;
/**
* Creditor class.
*
* @package Modules\Accounting\Models
* @license OMS License 2.2
* @link https://jingga.app
* @since 1.0.0
*/
class Creditor
{
/**
* Creditor ID.
*
* @var int
* @since 1.0.0
*/
public int $id = 0;
/**
* Account.
*
* @var null|int|Account
* @since 1.0.0
*/
public $account = null;
/**
* {@inheritdoc}
*/
public function toArray() : array
{
return [
'id' => $this->id,
'account' => $this->account,
];
}
/**
* {@inheritdoc}
*/
public function jsonSerialize() : mixed
{
return $this->toArray();
}
}