oms-WarehouseManagement/Models/StockMovement.php

79 lines
1.2 KiB
PHP

<?php
/**
* Orange Management
*
* PHP Version 8.0
*
* @package Modules\Warehousing\Models
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
namespace Modules\WarehouseManagement\Models;
/**
* Warehouse class.
*
* @package Modules\Warehousing\Models
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
class StockMovement
{
/**
* ID.
*
* @var int
* @since 1.0.0
*/
protected int $id = 0;
public int $quantity = 0;
public ?string $lot = null;
public int $from = 0;
public int $to = 0;
public int $type = StockMovementType::TRANSFER;
public int $subtype = 0;
public string $reference = '';
public int $billElement = 0;
/**
* Creator.
*
* @var Account
* @since 1.0.0
*/
protected Account $createdBy;
/**
* Created.
*
* @var \DateTimeImmutable
* @since 1.0.0
*/
public \DateTimeImmutable $createdAt;
/**
* Get ID.
*
* @return int
*
* @since 1.0.0
*/
public function getId()
{
return $this->id;
}
}