oms-InvestmentManagement/Models/Investment.php

74 lines
1.5 KiB
PHP

<?php
/**
* Karaka
*
* PHP Version 8.1
*
* @package Modules\InvestmentManagement\Models
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
namespace Modules\InvestmentManagement\Models;
use Modules\Admin\Models\Account;
use Modules\Admin\Models\NullAccount;
use phpOMS\Business\Finance\DepreciationType;
/**
* Investment model.
*
* @package Modules\InvestmentManagement\Models
* @license OMS License 2.0
* @link https://orange-management.org
* @since 1.0.0
*/
class Investment
{
public int $id = 0;
public string $name = '';
public string $description = '';
public int $depreciationType = DepreciationType::NONE;
public int $status = InvestmentStatus::DRAFT;
public array $options = [];
/**
* Income
*/
public array $ammortization = [];
public Account $createdBy;
public \DateTimeImmutable $createdAt;
public \DateTime $performanceDate;
public array $attributeTypes = [];
public ?int $unit = null;
/**
* Constructor.
*
* @since 1.0.0
*/
public __construct()
{
$this->createdBy = new NullAccount();
$this->createdAt = new \DateTimeImmutable('now');
$this->perforamnceDate = new \DateTime('now');
}
use \Modules\Media\Models\MediaListTrait;
use \Modules\Editor\Models\EditorDocListTrait;
use \Modules\Attribute\Models\AttributeHolderTrait;
}