mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 14:58:42 +00:00
prepare localization for profile
This commit is contained in:
parent
85b8bbec04
commit
a875509703
|
|
@ -49,13 +49,29 @@ final class Currency
|
||||||
private string $code = '';
|
private string $code = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Currency code.
|
* Currency symbol.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
private string $symbol = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Currency number.
|
||||||
*
|
*
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private int $number = 0;
|
private int $number = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Currency subunits.
|
||||||
|
*
|
||||||
|
* @var int
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
private int $subunits = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Currency decimals.
|
* Currency decimals.
|
||||||
*
|
*
|
||||||
|
|
@ -97,7 +113,19 @@ final class Currency
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get currency code
|
* Get currency symbol
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public function getSymbol() : string
|
||||||
|
{
|
||||||
|
return $this->symbol;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get currency number
|
||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*
|
*
|
||||||
|
|
@ -108,6 +136,18 @@ final class Currency
|
||||||
return $this->number;
|
return $this->number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get currency subunits
|
||||||
|
*
|
||||||
|
* @return int
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public function getSubunits() : int
|
||||||
|
{
|
||||||
|
return $this->subunits;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get currency decimals
|
* Get currency decimals
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -35,9 +35,11 @@ class CurrencyMapper extends DataMapperAbstract
|
||||||
protected static array $columns = [
|
protected static array $columns = [
|
||||||
'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_code' => ['name' => 'currency_code', '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_num', 'type' => 'string', 'internal' => 'number'],
|
||||||
'currency_decimal' => ['name' => 'currency_decimal', 'type' => 'int', 'internal' => 'decimals'],
|
'currency_symbol' => ['name' => 'currency_symbol', 'type' => 'string', 'internal' => 'symbol'],
|
||||||
|
'currency_subunits' => ['name' => 'currency_subunits', 'type' => 'int', 'internal' => 'subunits'],
|
||||||
|
'currency_decimals' => ['name' => 'currency_decimals', 'type' => 'int', '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