mirror of
https://github.com/Karaka-Management/oms-WarehouseManagement.git
synced 2026-02-14 21:28:40 +00:00
fix phpcs findings
This commit is contained in:
parent
d14831175b
commit
7c3ff61372
|
|
@ -4,11 +4,11 @@
|
||||||
*
|
*
|
||||||
* PHP Version 7.4
|
* PHP Version 7.4
|
||||||
*
|
*
|
||||||
* @package Modules\WarehouseManagement\Admin\Install
|
* @package Modules\WarehouseManagement\Admin\Install
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
@ -19,10 +19,10 @@ use phpOMS\DataStorage\Database\DatabasePool;
|
||||||
/**
|
/**
|
||||||
* Navigation class.
|
* Navigation class.
|
||||||
*
|
*
|
||||||
* @package Modules\WarehouseManagement\Admin\Install
|
* @package Modules\WarehouseManagement\Admin\Install
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Navigation
|
class Navigation
|
||||||
{
|
{
|
||||||
|
|
@ -34,7 +34,7 @@ class Navigation
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public static function install(string $path, DatabasePool $dbPool) : void
|
public static function install(string $path, DatabasePool $dbPool) : void
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
*
|
*
|
||||||
* PHP Version 7.4
|
* PHP Version 7.4
|
||||||
*
|
*
|
||||||
* @package Modules\WarehouseManagement\Admin
|
* @package Modules\WarehouseManagement\Admin
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
@ -19,10 +19,10 @@ use phpOMS\Module\InstallerAbstract;
|
||||||
/**
|
/**
|
||||||
* Installer class.
|
* Installer class.
|
||||||
*
|
*
|
||||||
* @package Modules\WarehouseManagement\Admin
|
* @package Modules\WarehouseManagement\Admin
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Installer extends InstallerAbstract
|
class Installer extends InstallerAbstract
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
*
|
*
|
||||||
* PHP Version 7.4
|
* PHP Version 7.4
|
||||||
*
|
*
|
||||||
* @package Modules\WarehouseManagement\Admin
|
* @package Modules\WarehouseManagement\Admin
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
@ -19,10 +19,10 @@ use phpOMS\Module\StatusAbstract;
|
||||||
/**
|
/**
|
||||||
* Navigation class.
|
* Navigation class.
|
||||||
*
|
*
|
||||||
* @package Modules\WarehouseManagement\Admin
|
* @package Modules\WarehouseManagement\Admin
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Status extends StatusAbstract
|
class Status extends StatusAbstract
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
*
|
*
|
||||||
* PHP Version 7.4
|
* PHP Version 7.4
|
||||||
*
|
*
|
||||||
* @package Modules\WarehouseManagement\Admin
|
* @package Modules\WarehouseManagement\Admin
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
@ -19,10 +19,10 @@ use phpOMS\Module\UninstallerAbstract;
|
||||||
/**
|
/**
|
||||||
* Uninstaller class.
|
* Uninstaller class.
|
||||||
*
|
*
|
||||||
* @package Modules\WarehouseManagement\Admin
|
* @package Modules\WarehouseManagement\Admin
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Uninstaller extends UninstallerAbstract
|
class Uninstaller extends UninstallerAbstract
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
*
|
*
|
||||||
* PHP Version 7.4
|
* PHP Version 7.4
|
||||||
*
|
*
|
||||||
* @package Modules\WarehouseManagement\Admin
|
* @package Modules\WarehouseManagement\Admin
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
@ -19,10 +19,10 @@ use phpOMS\Module\UpdaterAbstract;
|
||||||
/**
|
/**
|
||||||
* Updater class.
|
* Updater class.
|
||||||
*
|
*
|
||||||
* @package Modules\WarehouseManagement\Admin
|
* @package Modules\WarehouseManagement\Admin
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Updater extends UpdaterAbstract
|
class Updater extends UpdaterAbstract
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
*
|
*
|
||||||
* PHP Version 7.4
|
* PHP Version 7.4
|
||||||
*
|
*
|
||||||
* @package Modules\WarehouseManagement
|
* @package Modules\WarehouseManagement
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
@ -17,10 +17,10 @@ namespace Modules\WarehouseManagement\Controller;
|
||||||
/**
|
/**
|
||||||
* WarehouseManagement class.
|
* WarehouseManagement class.
|
||||||
*
|
*
|
||||||
* @package Modules\WarehouseManagement
|
* @package Modules\WarehouseManagement
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
final class BackendController extends Controller
|
final class BackendController extends Controller
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
*
|
*
|
||||||
* PHP Version 7.4
|
* PHP Version 7.4
|
||||||
*
|
*
|
||||||
* @package Modules\WarehouseManagement
|
* @package Modules\WarehouseManagement
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
@ -20,10 +20,10 @@ use phpOMS\Module\WebInterface;
|
||||||
/**
|
/**
|
||||||
* WarehouseManagement class.
|
* WarehouseManagement class.
|
||||||
*
|
*
|
||||||
* @package Modules\WarehouseManagement
|
* @package Modules\WarehouseManagement
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Controller extends ModuleAbstract implements WebInterface
|
class Controller extends ModuleAbstract implements WebInterface
|
||||||
{
|
{
|
||||||
|
|
@ -31,7 +31,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
/**
|
/**
|
||||||
* Module path.
|
* Module path.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public const MODULE_PATH = __DIR__ . '/../';
|
public const MODULE_PATH = __DIR__ . '/../';
|
||||||
|
|
@ -39,7 +39,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
/**
|
/**
|
||||||
* Module version.
|
* Module version.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public const MODULE_VERSION = '1.0.0';
|
public const MODULE_VERSION = '1.0.0';
|
||||||
|
|
@ -47,7 +47,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
/**
|
/**
|
||||||
* Module name.
|
* Module name.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public const MODULE_NAME = 'WarehouseManagement';
|
public const MODULE_NAME = 'WarehouseManagement';
|
||||||
|
|
@ -55,7 +55,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
/**
|
/**
|
||||||
* Module id.
|
* Module id.
|
||||||
*
|
*
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public const MODULE_ID = 1001300000;
|
public const MODULE_ID = 1001300000;
|
||||||
|
|
@ -63,7 +63,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
/**
|
/**
|
||||||
* Providing.
|
* Providing.
|
||||||
*
|
*
|
||||||
* @var string[]
|
* @var string[]
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static array $providing = [];
|
protected static array $providing = [];
|
||||||
|
|
@ -71,7 +71,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
/**
|
/**
|
||||||
* Dependencies.
|
* Dependencies.
|
||||||
*
|
*
|
||||||
* @var string[]
|
* @var string[]
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static array $dependencies = [];
|
protected static array $dependencies = [];
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
*
|
*
|
||||||
* PHP Version 7.4
|
* PHP Version 7.4
|
||||||
*
|
*
|
||||||
* @package Modules\Warehousing\Models
|
* @package Modules\Warehousing\Models
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
@ -17,10 +17,10 @@ namespace Modules\WarehouseManagement\Models;
|
||||||
/**
|
/**
|
||||||
* Warehouse class.
|
* Warehouse class.
|
||||||
*
|
*
|
||||||
* @package Modules\Warehousing\Models
|
* @package Modules\Warehousing\Models
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Arrival
|
class Arrival
|
||||||
{
|
{
|
||||||
|
|
@ -28,7 +28,7 @@ class Arrival
|
||||||
/**
|
/**
|
||||||
* ID.
|
* ID.
|
||||||
*
|
*
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private int $id = 0;
|
private int $id = 0;
|
||||||
|
|
@ -36,7 +36,7 @@ class Arrival
|
||||||
/**
|
/**
|
||||||
* Order.
|
* Order.
|
||||||
*
|
*
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private int $order = '';
|
private int $order = '';
|
||||||
|
|
@ -44,7 +44,7 @@ class Arrival
|
||||||
/**
|
/**
|
||||||
* From.
|
* From.
|
||||||
*
|
*
|
||||||
* @var \phpOMS\Stdlib\Base\Address
|
* @var \phpOMS\Stdlib\Base\Address
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $from = null;
|
private $from = null;
|
||||||
|
|
@ -52,7 +52,7 @@ class Arrival
|
||||||
/**
|
/**
|
||||||
* Warehouse.
|
* Warehouse.
|
||||||
*
|
*
|
||||||
* @var \Modules\Warehousing\Models\Warehouse
|
* @var \Modules\Warehousing\Models\Warehouse
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $warehouse = null;
|
private $warehouse = null;
|
||||||
|
|
@ -60,7 +60,7 @@ class Arrival
|
||||||
/**
|
/**
|
||||||
* Date of arrival.
|
* Date of arrival.
|
||||||
*
|
*
|
||||||
* @var null|\DateTime
|
* @var null|\DateTime
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private ?\DateTime $date = null;
|
private ?\DateTime $date = null;
|
||||||
|
|
@ -68,7 +68,7 @@ class Arrival
|
||||||
/**
|
/**
|
||||||
* Person who accepted the delivery.
|
* Person who accepted the delivery.
|
||||||
*
|
*
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private int $acceptor = null;
|
private int $acceptor = null;
|
||||||
|
|
@ -76,7 +76,7 @@ class Arrival
|
||||||
/**
|
/**
|
||||||
* Warehouse.
|
* Warehouse.
|
||||||
*
|
*
|
||||||
* @var \Modules\Warehousing\Models\ArrivalStatus
|
* @var \Modules\Warehousing\Models\ArrivalStatus
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $status = null;
|
private $status = null;
|
||||||
|
|
@ -86,7 +86,7 @@ class Arrival
|
||||||
/**
|
/**
|
||||||
* Arrival.
|
* Arrival.
|
||||||
*
|
*
|
||||||
* @var \Modules\Warehousing\Models\Arrival[]
|
* @var \Modules\Warehousing\Models\Arrival[]
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private static array $instances = [];
|
private static array $instances = [];
|
||||||
|
|
@ -96,7 +96,7 @@ class Arrival
|
||||||
*
|
*
|
||||||
* @param int $id Arrival ID
|
* @param int $id Arrival ID
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private function __construct($id)
|
private function __construct($id)
|
||||||
{
|
{
|
||||||
|
|
@ -120,7 +120,7 @@ class Arrival
|
||||||
*
|
*
|
||||||
* @return \Modules\Warehousing\Models\Arrival
|
* @return \Modules\Warehousing\Models\Arrival
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getInstance($id)
|
public function getInstance($id)
|
||||||
{
|
{
|
||||||
|
|
@ -136,7 +136,7 @@ class Arrival
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getId()
|
public function getId()
|
||||||
{
|
{
|
||||||
|
|
@ -148,7 +148,7 @@ class Arrival
|
||||||
*
|
*
|
||||||
* @return \DateTime Date of arrival
|
* @return \DateTime Date of arrival
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getDate()
|
public function getDate()
|
||||||
{
|
{
|
||||||
|
|
@ -162,7 +162,7 @@ class Arrival
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setDate($date) : void
|
public function setDate($date) : void
|
||||||
{
|
{
|
||||||
|
|
@ -174,7 +174,7 @@ class Arrival
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getOrder()
|
public function getOrder()
|
||||||
{
|
{
|
||||||
|
|
@ -188,7 +188,7 @@ class Arrival
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setOrder($order) : void
|
public function setOrder($order) : void
|
||||||
{
|
{
|
||||||
|
|
@ -200,7 +200,7 @@ class Arrival
|
||||||
*
|
*
|
||||||
* @return \phpOMS\Stdlib\Base\Address
|
* @return \phpOMS\Stdlib\Base\Address
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getFrom()
|
public function getFrom()
|
||||||
{
|
{
|
||||||
|
|
@ -214,7 +214,7 @@ class Arrival
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setFrom($from) : void
|
public function setFrom($from) : void
|
||||||
{
|
{
|
||||||
|
|
@ -226,7 +226,7 @@ class Arrival
|
||||||
*
|
*
|
||||||
* @return \Modules\Warehousing\Models\ArrivalStatus
|
* @return \Modules\Warehousing\Models\ArrivalStatus
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getStatus()
|
public function getStatus()
|
||||||
{
|
{
|
||||||
|
|
@ -240,7 +240,7 @@ class Arrival
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setStatus($status) : void
|
public function setStatus($status) : void
|
||||||
{
|
{
|
||||||
|
|
@ -252,7 +252,7 @@ class Arrival
|
||||||
*
|
*
|
||||||
* @return \Modules\Warehousing\Models\Warehouse
|
* @return \Modules\Warehousing\Models\Warehouse
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getWarehouse()
|
public function getWarehouse()
|
||||||
{
|
{
|
||||||
|
|
@ -264,7 +264,7 @@ class Arrival
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getAcceptor()
|
public function getAcceptor()
|
||||||
{
|
{
|
||||||
|
|
@ -278,7 +278,7 @@ class Arrival
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setAcceptor($acceptor) : void
|
public function setAcceptor($acceptor) : void
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
*
|
*
|
||||||
* PHP Version 7.4
|
* PHP Version 7.4
|
||||||
*
|
*
|
||||||
* @package Modules\Warehousing\Models
|
* @package Modules\Warehousing\Models
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum;
|
||||||
/**
|
/**
|
||||||
* Arrival status enum.
|
* Arrival status enum.
|
||||||
*
|
*
|
||||||
* @package Modules\Warehousing\Models
|
* @package Modules\Warehousing\Models
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
abstract class ArrivalStatus extends Enum
|
abstract class ArrivalStatus extends Enum
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,21 +4,21 @@
|
||||||
*
|
*
|
||||||
* PHP Version 7.4
|
* PHP Version 7.4
|
||||||
*
|
*
|
||||||
* @package Modules\Warehousing\Models
|
* @package Modules\Warehousing\Models
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
*/ /* TODO: maybe make this a framework object? and let warehousing, sales, purchase extend this */
|
*/ /* TODO: maybe make this a framework object? and let warehousing, sales, purchase extend this */
|
||||||
namespace Modules\WarehouseManagement\Models;
|
namespace Modules\WarehouseManagement\Models;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Article class.
|
* Article class.
|
||||||
*
|
*
|
||||||
* @package Modules\Warehousing\Models
|
* @package Modules\Warehousing\Models
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Article
|
class Article
|
||||||
{
|
{
|
||||||
|
|
@ -26,7 +26,7 @@ class Article
|
||||||
/**
|
/**
|
||||||
* Article ID.
|
* Article ID.
|
||||||
*
|
*
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private int $id = null;
|
private int $id = null;
|
||||||
|
|
@ -34,7 +34,7 @@ class Article
|
||||||
/**
|
/**
|
||||||
* Name.
|
* Name.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private string $name = '';
|
private string $name = '';
|
||||||
|
|
@ -42,7 +42,7 @@ class Article
|
||||||
/**
|
/**
|
||||||
* Description.
|
* Description.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private string $description = '';
|
private string $description = '';
|
||||||
|
|
@ -50,7 +50,7 @@ class Article
|
||||||
/**
|
/**
|
||||||
* Matchcode.
|
* Matchcode.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private string $matchcode = '';
|
private string $matchcode = '';
|
||||||
|
|
@ -58,7 +58,7 @@ class Article
|
||||||
/**
|
/**
|
||||||
* Sector.
|
* Sector.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private string $sector = null;
|
private string $sector = null;
|
||||||
|
|
@ -66,7 +66,7 @@ class Article
|
||||||
/**
|
/**
|
||||||
* Group.
|
* Group.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private string $group = null;
|
private string $group = null;
|
||||||
|
|
@ -76,7 +76,7 @@ class Article
|
||||||
*
|
*
|
||||||
* supplier price leadtime
|
* supplier price leadtime
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private string $suppliers = null;
|
private string $suppliers = null;
|
||||||
|
|
@ -86,7 +86,7 @@ class Article
|
||||||
*
|
*
|
||||||
* [en] Name - Description
|
* [en] Name - Description
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private array $invoice_i18n = [];
|
private array $invoice_i18n = [];
|
||||||
|
|
@ -96,7 +96,7 @@ class Article
|
||||||
*
|
*
|
||||||
* [id] name country state prize discount% discountA bonus-in-kind groupA groupB amount event
|
* [id] name country state prize discount% discountA bonus-in-kind groupA groupB amount event
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private array $prizes = [];
|
private array $prizes = [];
|
||||||
|
|
@ -104,7 +104,7 @@ class Article
|
||||||
/**
|
/**
|
||||||
* Active supplier.
|
* Active supplier.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private string $pprice = null;
|
private string $pprice = null;
|
||||||
|
|
@ -112,7 +112,7 @@ class Article
|
||||||
/**
|
/**
|
||||||
* Created.
|
* Created.
|
||||||
*
|
*
|
||||||
* @var null|\DateTime
|
* @var null|\DateTime
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private ?\DateTime $created = null;
|
private ?\DateTime $created = null;
|
||||||
|
|
@ -120,7 +120,7 @@ class Article
|
||||||
/**
|
/**
|
||||||
* Creator.
|
* Creator.
|
||||||
*
|
*
|
||||||
* @var \phpOMS\Models\User
|
* @var \phpOMS\Models\User
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $creator = null;
|
private $creator = null;
|
||||||
|
|
@ -128,7 +128,7 @@ class Article
|
||||||
/**
|
/**
|
||||||
* Article.
|
* Article.
|
||||||
*
|
*
|
||||||
* @var \Modules\Warehousing\Models\Article[]
|
* @var \Modules\Warehousing\Models\Article[]
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private static array $instances = [];
|
private static array $instances = [];
|
||||||
|
|
@ -138,7 +138,7 @@ class Article
|
||||||
*
|
*
|
||||||
* @param int $id Article ID
|
* @param int $id Article ID
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function __construct($id)
|
public function __construct($id)
|
||||||
{
|
{
|
||||||
|
|
@ -162,7 +162,7 @@ class Article
|
||||||
*
|
*
|
||||||
* @return \Modules\Warehousing\Models\Article
|
* @return \Modules\Warehousing\Models\Article
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getInstance($id)
|
public function getInstance($id)
|
||||||
{
|
{
|
||||||
|
|
@ -178,7 +178,7 @@ class Article
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getId()
|
public function getId()
|
||||||
{
|
{
|
||||||
|
|
@ -190,7 +190,7 @@ class Article
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
|
|
@ -204,7 +204,7 @@ class Article
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setName($name) : void
|
public function setName($name) : void
|
||||||
{
|
{
|
||||||
|
|
@ -216,7 +216,7 @@ class Article
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getMatchcode()
|
public function getMatchcode()
|
||||||
{
|
{
|
||||||
|
|
@ -230,7 +230,7 @@ class Article
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setMatchcode($matchcode) : void
|
public function setMatchcode($matchcode) : void
|
||||||
{
|
{
|
||||||
|
|
@ -242,7 +242,7 @@ class Article
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getDescription()
|
public function getDescription()
|
||||||
{
|
{
|
||||||
|
|
@ -256,7 +256,7 @@ class Article
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setDescription($desc) : void
|
public function setDescription($desc) : void
|
||||||
{
|
{
|
||||||
|
|
@ -268,7 +268,7 @@ class Article
|
||||||
*
|
*
|
||||||
* @return \DateTime
|
* @return \DateTime
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getCreated()
|
public function getCreated()
|
||||||
{
|
{
|
||||||
|
|
@ -282,7 +282,7 @@ class Article
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setCreated($created) : void
|
public function setCreated($created) : void
|
||||||
{
|
{
|
||||||
|
|
@ -294,7 +294,7 @@ class Article
|
||||||
*
|
*
|
||||||
* @return \phpOMS\Models\User
|
* @return \phpOMS\Models\User
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getCreator()
|
public function getCreator()
|
||||||
{
|
{
|
||||||
|
|
@ -308,7 +308,7 @@ class Article
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setCreator($creator) : void
|
public function setCreator($creator) : void
|
||||||
{
|
{
|
||||||
|
|
@ -323,7 +323,7 @@ class Article
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function addPrice($price, $db = true) : void
|
public function addPrice($price, $db = true) : void
|
||||||
{
|
{
|
||||||
|
|
@ -339,7 +339,7 @@ class Article
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function removePrice($id, $db = true) : void
|
public function removePrice($id, $db = true) : void
|
||||||
{
|
{
|
||||||
|
|
@ -357,7 +357,7 @@ class Article
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function editPrice($id, $price, $db = true) : void
|
public function editPrice($id, $price, $db = true) : void
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
*
|
*
|
||||||
* PHP Version 7.4
|
* PHP Version 7.4
|
||||||
*
|
*
|
||||||
* @package Modules\Warehousing\Models
|
* @package Modules\Warehousing\Models
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
@ -17,10 +17,10 @@ namespace Modules\WarehouseManagement\Models;
|
||||||
/**
|
/**
|
||||||
* Counting list class.
|
* Counting list class.
|
||||||
*
|
*
|
||||||
* @package Modules\Warehousing\Models
|
* @package Modules\Warehousing\Models
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class CountingList
|
class CountingList
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
*
|
*
|
||||||
* PHP Version 7.4
|
* PHP Version 7.4
|
||||||
*
|
*
|
||||||
* @package Modules\Warehousing\Models
|
* @package Modules\Warehousing\Models
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum;
|
||||||
/**
|
/**
|
||||||
* Packaging status enum.
|
* Packaging status enum.
|
||||||
*
|
*
|
||||||
* @package Modules\Warehousing\Models
|
* @package Modules\Warehousing\Models
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
abstract class PackagingStatus extends Enum
|
abstract class PackagingStatus extends Enum
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
*
|
*
|
||||||
* PHP Version 7.4
|
* PHP Version 7.4
|
||||||
*
|
*
|
||||||
* @package Modules\Warehousing\Models
|
* @package Modules\Warehousing\Models
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
@ -17,10 +17,10 @@ namespace Modules\WarehouseManagement\Models;
|
||||||
/**
|
/**
|
||||||
* Warehouse class.
|
* Warehouse class.
|
||||||
*
|
*
|
||||||
* @package Modules\Warehousing\Models
|
* @package Modules\Warehousing\Models
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Shipping
|
class Shipping
|
||||||
{
|
{
|
||||||
|
|
@ -28,7 +28,7 @@ class Shipping
|
||||||
/**
|
/**
|
||||||
* ID.
|
* ID.
|
||||||
*
|
*
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private int $id = 0;
|
private int $id = 0;
|
||||||
|
|
@ -36,7 +36,7 @@ class Shipping
|
||||||
/**
|
/**
|
||||||
* Order.
|
* Order.
|
||||||
*
|
*
|
||||||
* @var intstring
|
* @var intstring
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $order = '';
|
private $order = '';
|
||||||
|
|
@ -44,7 +44,7 @@ class Shipping
|
||||||
/**
|
/**
|
||||||
* From.
|
* From.
|
||||||
*
|
*
|
||||||
* @var \phpOMS\Stdlib\Base\Address
|
* @var \phpOMS\Stdlib\Base\Address
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $to = null;
|
private $to = null;
|
||||||
|
|
@ -52,7 +52,7 @@ class Shipping
|
||||||
/**
|
/**
|
||||||
* Warehouse.
|
* Warehouse.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private string $warehouse = '';
|
private string $warehouse = '';
|
||||||
|
|
@ -60,7 +60,7 @@ class Shipping
|
||||||
/**
|
/**
|
||||||
* Date of arrival.
|
* Date of arrival.
|
||||||
*
|
*
|
||||||
* @var null|\DateTime
|
* @var null|\DateTime
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private ?\DateTime $delivered = null;
|
private ?\DateTime $delivered = null;
|
||||||
|
|
@ -68,7 +68,7 @@ class Shipping
|
||||||
/**
|
/**
|
||||||
* Person who sent the delivery.
|
* Person who sent the delivery.
|
||||||
*
|
*
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private int $sender = null;
|
private int $sender = null;
|
||||||
|
|
@ -76,7 +76,7 @@ class Shipping
|
||||||
/**
|
/**
|
||||||
* Warehouse.
|
* Warehouse.
|
||||||
*
|
*
|
||||||
* @var \Modules\Warehousing\Models\ArrivalStatus
|
* @var \Modules\Warehousing\Models\ArrivalStatus
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $status = null;
|
private $status = null;
|
||||||
|
|
@ -84,7 +84,7 @@ class Shipping
|
||||||
/**
|
/**
|
||||||
* Shipping.
|
* Shipping.
|
||||||
*
|
*
|
||||||
* @var \Modules\Warehousing\Models\Article[]
|
* @var \Modules\Warehousing\Models\Article[]
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private static array $instances = [];
|
private static array $instances = [];
|
||||||
|
|
@ -94,7 +94,7 @@ class Shipping
|
||||||
*
|
*
|
||||||
* @param int $id Article ID
|
* @param int $id Article ID
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function __construct($id)
|
public function __construct($id)
|
||||||
{
|
{
|
||||||
|
|
@ -108,7 +108,7 @@ class Shipping
|
||||||
*
|
*
|
||||||
* @return \Modules\Warehousing\Models\Article
|
* @return \Modules\Warehousing\Models\Article
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public static function getInstance($id)
|
public static function getInstance($id)
|
||||||
{
|
{
|
||||||
|
|
@ -134,7 +134,7 @@ class Shipping
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getId()
|
public function getId()
|
||||||
{
|
{
|
||||||
|
|
@ -146,7 +146,7 @@ class Shipping
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getOrder()
|
public function getOrder()
|
||||||
{
|
{
|
||||||
|
|
@ -160,7 +160,7 @@ class Shipping
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setOrder($order) : void
|
public function setOrder($order) : void
|
||||||
{
|
{
|
||||||
|
|
@ -172,7 +172,7 @@ class Shipping
|
||||||
*
|
*
|
||||||
* @return \DateTime
|
* @return \DateTime
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getDelivered()
|
public function getDelivered()
|
||||||
{
|
{
|
||||||
|
|
@ -186,7 +186,7 @@ class Shipping
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setDelivered($delivered) : void
|
public function setDelivered($delivered) : void
|
||||||
{
|
{
|
||||||
|
|
@ -198,7 +198,7 @@ class Shipping
|
||||||
*
|
*
|
||||||
* @return \phpOMS\Stdlib\Base\Address
|
* @return \phpOMS\Stdlib\Base\Address
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getTo()
|
public function getTo()
|
||||||
{
|
{
|
||||||
|
|
@ -212,7 +212,7 @@ class Shipping
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setTo($to) : void
|
public function setTo($to) : void
|
||||||
{
|
{
|
||||||
|
|
@ -224,7 +224,7 @@ class Shipping
|
||||||
*
|
*
|
||||||
* @return \Modules\Warehousing\Models\ArrivalStatus
|
* @return \Modules\Warehousing\Models\ArrivalStatus
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getStatus()
|
public function getStatus()
|
||||||
{
|
{
|
||||||
|
|
@ -238,7 +238,7 @@ class Shipping
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setStatus($status) : void
|
public function setStatus($status) : void
|
||||||
{
|
{
|
||||||
|
|
@ -250,7 +250,7 @@ class Shipping
|
||||||
*
|
*
|
||||||
* @return \Modules\Warehousing\Models\Warehouse
|
* @return \Modules\Warehousing\Models\Warehouse
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getWarehouse()
|
public function getWarehouse()
|
||||||
{
|
{
|
||||||
|
|
@ -262,7 +262,7 @@ class Shipping
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getSender()
|
public function getSender()
|
||||||
{
|
{
|
||||||
|
|
@ -276,7 +276,7 @@ class Shipping
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setSender($sender) : void
|
public function setSender($sender) : void
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
*
|
*
|
||||||
* PHP Version 7.4
|
* PHP Version 7.4
|
||||||
*
|
*
|
||||||
* @package Modules\Warehousing\Models
|
* @package Modules\Warehousing\Models
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
|
@ -17,10 +17,10 @@ namespace Modules\WarehouseManagement\Models;
|
||||||
/**
|
/**
|
||||||
* Warehouse class.
|
* Warehouse class.
|
||||||
*
|
*
|
||||||
* @package Modules\Warehousing\Models
|
* @package Modules\Warehousing\Models
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Warehouse
|
class Warehouse
|
||||||
{
|
{
|
||||||
|
|
@ -28,7 +28,7 @@ class Warehouse
|
||||||
/**
|
/**
|
||||||
* Name.
|
* Name.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private string $name = '';
|
private string $name = '';
|
||||||
|
|
@ -36,7 +36,7 @@ class Warehouse
|
||||||
/**
|
/**
|
||||||
* Description.
|
* Description.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private string $description = '';
|
private string $description = '';
|
||||||
|
|
@ -44,7 +44,7 @@ class Warehouse
|
||||||
/**
|
/**
|
||||||
* Location of the warehouse.
|
* Location of the warehouse.
|
||||||
*
|
*
|
||||||
* @var \phpOMS\Stdlib\Base\Location
|
* @var \phpOMS\Stdlib\Base\Location
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $location = null;
|
private $location = null;
|
||||||
|
|
@ -52,7 +52,7 @@ class Warehouse
|
||||||
/**
|
/**
|
||||||
* Warehouse.
|
* Warehouse.
|
||||||
*
|
*
|
||||||
* @var \Modules\Warehousing\Models\Warehouse[]
|
* @var \Modules\Warehousing\Models\Warehouse[]
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private static array $instances = [];
|
private static array $instances = [];
|
||||||
|
|
@ -62,7 +62,7 @@ class Warehouse
|
||||||
*
|
*
|
||||||
* @param int $id Warehouse ID
|
* @param int $id Warehouse ID
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function __construct($id)
|
public function __construct($id)
|
||||||
{
|
{
|
||||||
|
|
@ -76,7 +76,7 @@ class Warehouse
|
||||||
*
|
*
|
||||||
* @return \Modules\Warehousing\Models\Warehouse
|
* @return \Modules\Warehousing\Models\Warehouse
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public static function getInstance($id)
|
public static function getInstance($id)
|
||||||
{
|
{
|
||||||
|
|
@ -102,7 +102,7 @@ class Warehouse
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getId()
|
public function getId()
|
||||||
{
|
{
|
||||||
|
|
@ -114,7 +114,7 @@ class Warehouse
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
|
|
@ -128,7 +128,7 @@ class Warehouse
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setName($name) : void
|
public function setName($name) : void
|
||||||
{
|
{
|
||||||
|
|
@ -140,7 +140,7 @@ class Warehouse
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getDescription()
|
public function getDescription()
|
||||||
{
|
{
|
||||||
|
|
@ -154,7 +154,7 @@ class Warehouse
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setDescription($description) : void
|
public function setDescription($description) : void
|
||||||
{
|
{
|
||||||
|
|
@ -166,7 +166,7 @@ class Warehouse
|
||||||
*
|
*
|
||||||
* @return \phpOMS\Stdlib\Base\Location
|
* @return \phpOMS\Stdlib\Base\Location
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getLocation()
|
public function getLocation()
|
||||||
{
|
{
|
||||||
|
|
@ -180,7 +180,7 @@ class Warehouse
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setLocation($location) : void
|
public function setLocation($location) : void
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
*
|
*
|
||||||
* PHP Version 7.4
|
* PHP Version 7.4
|
||||||
*
|
*
|
||||||
* @package TBD
|
* @package TBD
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
*/
|
*/
|
||||||
return ['Navigation' => [
|
return ['Navigation' => [
|
||||||
'Arrival' => 'Arrival',
|
'Arrival' => 'Arrival',
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
*
|
*
|
||||||
* PHP Version 7.4
|
* PHP Version 7.4
|
||||||
*
|
*
|
||||||
* @package TBD
|
* @package TBD
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
*/
|
*/
|
||||||
$MODLANG[1] = [
|
$MODLANG[1] = [
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
*
|
*
|
||||||
* PHP Version 7.4
|
* PHP Version 7.4
|
||||||
*
|
*
|
||||||
* @package TBD
|
* @package TBD
|
||||||
* @copyright Dennis Eichhorn
|
* @copyright Dennis Eichhorn
|
||||||
* @license OMS License 1.0
|
* @license OMS License 1.0
|
||||||
* @version 1.0.0
|
* @version 1.0.0
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
*/
|
*/
|
||||||
return ['WarehouseManagement' => [
|
return ['WarehouseManagement' => [
|
||||||
'All' => 'All',
|
'All' => 'All',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user