oms-Production/Models/Production.php
Dennis Eichhorn 05d0ce76ab
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
Test fixes
2024-05-16 02:14:55 +00:00

60 lines
1.1 KiB
PHP

<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package Modules\Production\Models
* @copyright Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
namespace Modules\Production\Models;
use Modules\Billing\Models\Bill;
use Modules\ItemManagement\Models\Item;
use Modules\ItemManagement\Models\NullItem;
/**
* Production model.
*
* @package Modules\Production\Models
* @license OMS License 2.0
* @link https://jingga.app
* @since 1.0.0
*/
class Production
{
public int $id = 0;
public string $number = '';
public int $status = ProductionStatus::ACTIVE;
public \DateTimeImmutable $createdAt;
public ?\DateTime $start = null;
public ?\DateTime $expectedEnd = null;
public ?\DateTime $end = null;
public ?Bill $bill = null;
public Item $item;
/**
* Constructor.
*
* @since 1.0.0
*/
public function __construct()
{
$this->createdAt = new \DateTimeImmutable('now');
$this->item = new NullItem();
}
}