mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-02-18 01:08:42 +00:00
phpcs, static and unit test fixes
This commit is contained in:
parent
c748fc36ea
commit
d98a6b29e3
|
|
@ -35,6 +35,14 @@ use phpOMS\Module\ModuleInfo;
|
||||||
*/
|
*/
|
||||||
final class Installer extends InstallerAbstract
|
final class Installer extends InstallerAbstract
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Path of the file
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public const PATH = __DIR__;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -26,4 +26,11 @@ use phpOMS\Module\StatusAbstract;
|
||||||
*/
|
*/
|
||||||
final class Status extends StatusAbstract
|
final class Status extends StatusAbstract
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Path of the file
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public const PATH = __DIR__;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,13 @@ use phpOMS\Module\UninstallerAbstract;
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
final class Uninstaller extends UninstallerAbstract
|
final class Installer extends InstallerAbstract
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Path of the file
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public const PATH = __DIR__;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -55,9 +55,7 @@ class Bill implements \JsonSerializable
|
||||||
* @var int|BillType
|
* @var int|BillType
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public int |
|
public int|BillType $type = 0;
|
||||||
|
|
||||||
BillType $type = 0;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bill status.
|
* Bill status.
|
||||||
|
|
|
||||||
|
|
@ -91,9 +91,7 @@ class BillElement implements \JsonSerializable
|
||||||
*/
|
*/
|
||||||
public int $promotion = 0;
|
public int $promotion = 0;
|
||||||
|
|
||||||
public int |
|
public int|Bill $bill = 0;
|
||||||
|
|
||||||
Bill $bill = 0;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
|
|
||||||
|
|
@ -43,9 +43,7 @@ class BillType
|
||||||
*
|
*
|
||||||
* @var string|BillTypeL11n
|
* @var string|BillTypeL11n
|
||||||
*/
|
*/
|
||||||
protected string |
|
protected string|BillTypeL11n $l11n;
|
||||||
|
|
||||||
BillTypeL11n $l11n;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
|
|
||||||
|
|
@ -41,9 +41,7 @@ class BillTypeL11n implements \JsonSerializable, ArrayableInterface
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected int |
|
protected int|BillType $type = 0;
|
||||||
|
|
||||||
BillType $type = 0;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Language.
|
* Language.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user