mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-01-11 19:58:41 +00:00
73 lines
1.1 KiB
PHP
73 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Jingga
|
|
*
|
|
* PHP Version 8.1
|
|
*
|
|
* @package Modules\ItemManagement\Models
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\ItemManagement\Models;
|
|
|
|
/**
|
|
* Container class.
|
|
*
|
|
* @package Modules\ItemManagement\Models
|
|
* @license OMS License 2.0
|
|
* @link https://jingga.app
|
|
* @since 1.0.0
|
|
*/
|
|
class Container implements \JsonSerializable
|
|
{
|
|
/**
|
|
* ID.
|
|
*
|
|
* @var int
|
|
* @since 1.0.0
|
|
*/
|
|
public int $id = 0;
|
|
|
|
public string $name = '';
|
|
|
|
public string $unit = 'pcs';
|
|
|
|
public int $quantity = 0;
|
|
|
|
public int $quantityDecimals = 0;
|
|
|
|
public int $weight = 0;
|
|
|
|
public int $width = 0;
|
|
|
|
public int $height = 0;
|
|
|
|
public int $length = 0;
|
|
|
|
public int $volume = 0;
|
|
|
|
public int $item = 0;
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function toArray() : array
|
|
{
|
|
return [
|
|
'id' => $this->id,
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function jsonSerialize() : mixed
|
|
{
|
|
return $this->toArray();
|
|
}
|
|
}
|