mirror of
https://github.com/archtechx/money.git
synced 2025-12-12 19:34:02 +00:00
* Remove trailing zeros from formatted price * Add setting for how to handle trailing decimal zeros * Write tests * Fix code style * Rewrite function description * Change test name * Add empty line at end of file * rename deleteTrailingDecimalZeros to trimTrailingDecimalZeros * Fix grammar * Remove unnecessary parameter declarations * fix test name * fix comment grammar * fix docblock grammar Co-authored-by: Samuel Štancl <samuel@archte.ch>
17 lines
429 B
PHP
17 lines
429 B
PHP
<?php
|
|
|
|
namespace ArchTech\Money\Tests\Currencies;
|
|
|
|
use ArchTech\Money\Currency;
|
|
|
|
class SEK extends Currency
|
|
{
|
|
protected string $code = 'SEK';
|
|
protected string $name = 'Swedish crown';
|
|
protected float $rate = 9.94;
|
|
protected int $mathDecimals = 4;
|
|
protected int $displayDecimals = 2;
|
|
protected int $rounding = 0;
|
|
protected string $suffix = ' kr';
|
|
protected bool $trimTrailingDecimalZeros = true;
|
|
}
|