1
0
Fork 0
mirror of https://github.com/archtechx/money.git synced 2025-12-12 19:34:02 +00:00

Initial commit

This commit is contained in:
Samuel Štancl 2021-11-16 19:06:57 +01:00
commit 8847454577
33 changed files with 2435 additions and 0 deletions

18
tests/Currencies/CZK.php Normal file
View file

@ -0,0 +1,18 @@
<?php
namespace ArchTech\Money\Tests\Currencies;
use ArchTech\Money\Currency;
class CZK extends Currency
{
protected string $code = 'CZK';
protected string $name = 'Czech Crown';
protected float $rate = 25;
protected int $mathDecimals = 2;
protected int $displayDecimals = 0;
protected string $decimalSeparator = ',';
protected string $thousandsSeparator = '.';
protected int $rounding = 2;
protected string $suffix = ' Kč';
}

16
tests/Currencies/EUR.php Normal file
View file

@ -0,0 +1,16 @@
<?php
namespace ArchTech\Money\Tests\Currencies;
use ArchTech\Money\Currency;
class EUR extends Currency
{
protected string $code = 'EUR';
protected string $name = 'Euro';
protected float $rate = 0.9;
protected int $mathDecimals = 4;
protected int $displayDecimals = 2;
protected int $rounding = 0;
protected string $suffix = ' €';
}