mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-02-11 22: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
|
||||
{
|
||||
/**
|
||||
* Path of the file
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public const PATH = __DIR__;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -26,4 +26,11 @@ use phpOMS\Module\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
|
||||
* @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
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public int |
|
||||
|
||||
BillType $type = 0;
|
||||
public int|BillType $type = 0;
|
||||
|
||||
/**
|
||||
* Bill status.
|
||||
|
|
|
|||
|
|
@ -91,9 +91,7 @@ class BillElement implements \JsonSerializable
|
|||
*/
|
||||
public int $promotion = 0;
|
||||
|
||||
public int |
|
||||
|
||||
Bill $bill = 0;
|
||||
public int|Bill $bill = 0;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
|
|
|
|||
|
|
@ -43,9 +43,7 @@ class BillType
|
|||
*
|
||||
* @var string|BillTypeL11n
|
||||
*/
|
||||
protected string |
|
||||
|
||||
BillTypeL11n $l11n;
|
||||
protected string|BillTypeL11n $l11n;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
|
|
|
|||
|
|
@ -41,9 +41,7 @@ class BillTypeL11n implements \JsonSerializable, ArrayableInterface
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected int |
|
||||
|
||||
BillType $type = 0;
|
||||
protected int|BillType $type = 0;
|
||||
|
||||
/**
|
||||
* Language.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user