mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 06:48:41 +00:00
fix type bug
This commit is contained in:
parent
d3e3e90ddd
commit
c89e773c8e
|
|
@ -59,10 +59,10 @@ final class Currency
|
||||||
/**
|
/**
|
||||||
* Currency number.
|
* Currency number.
|
||||||
*
|
*
|
||||||
* @var int
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private int $number = 0;
|
private string $number = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Currency subunits.
|
* Currency subunits.
|
||||||
|
|
@ -75,10 +75,10 @@ final class Currency
|
||||||
/**
|
/**
|
||||||
* Currency decimals.
|
* Currency decimals.
|
||||||
*
|
*
|
||||||
* @var int
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private int $decimals = 0;
|
private string $decimals = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Currency countries.
|
* Currency countries.
|
||||||
|
|
@ -127,11 +127,11 @@ final class Currency
|
||||||
/**
|
/**
|
||||||
* Get currency number
|
* Get currency number
|
||||||
*
|
*
|
||||||
* @return int
|
* @return string
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getNumber() : int
|
public function getNumber() : string
|
||||||
{
|
{
|
||||||
return $this->number;
|
return $this->number;
|
||||||
}
|
}
|
||||||
|
|
@ -151,11 +151,11 @@ final class Currency
|
||||||
/**
|
/**
|
||||||
* Get currency decimals
|
* Get currency decimals
|
||||||
*
|
*
|
||||||
* @return int
|
* @return string
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getDecimals() : int
|
public function getDecimals() : string
|
||||||
{
|
{
|
||||||
return $this->decimals;
|
return $this->decimals;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,10 +36,10 @@ class CurrencyMapper extends DataMapperAbstract
|
||||||
'currency_id' => ['name' => 'currency_id', 'type' => 'int', 'internal' => 'id'],
|
'currency_id' => ['name' => 'currency_id', 'type' => 'int', 'internal' => 'id'],
|
||||||
'currency_name' => ['name' => 'currency_name', 'type' => 'string', 'internal' => 'name'],
|
'currency_name' => ['name' => 'currency_name', 'type' => 'string', 'internal' => 'name'],
|
||||||
'currency_char' => ['name' => 'currency_char', 'type' => 'string', 'internal' => 'code'],
|
'currency_char' => ['name' => 'currency_char', 'type' => 'string', 'internal' => 'code'],
|
||||||
'currency_number' => ['name' => 'currency_number', 'type' => 'int', 'internal' => 'number'],
|
'currency_number' => ['name' => 'currency_number', 'type' => 'string', 'internal' => 'number'],
|
||||||
'currency_symbol' => ['name' => 'currency_symbol', 'type' => 'string', 'internal' => 'symbol'],
|
'currency_symbol' => ['name' => 'currency_symbol', 'type' => 'string', 'internal' => 'symbol'],
|
||||||
'currency_subunits' => ['name' => 'currency_subunits', 'type' => 'int', 'internal' => 'subunits'],
|
'currency_subunits' => ['name' => 'currency_subunits', 'type' => 'int', 'internal' => 'subunits'],
|
||||||
'currency_decimals' => ['name' => 'currency_decimals', 'type' => 'int', 'internal' => 'decimals'],
|
'currency_decimals' => ['name' => 'currency_decimals', 'type' => 'string', 'internal' => 'decimals'],
|
||||||
'currency_countries' => ['name' => 'currency_countries', 'type' => 'string', 'internal' => 'countries'],
|
'currency_countries' => ['name' => 'currency_countries', 'type' => 'string', 'internal' => 'countries'],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user