文件操作 - BitcoinCurrencies.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/give/vendor/moneyphp/money/src/Currencies/BitcoinCurrencies.php
编辑文件内容
<?php namespace Money\Currencies; use Money\Currencies; use Money\Currency; use Money\Exception\UnknownCurrencyException; /** * @author Frederik Bosch <f.bosch@genkgo.nl> */ final class BitcoinCurrencies implements Currencies { const CODE = 'XBT'; const SYMBOL = "\xC9\x83"; /** * {@inheritdoc} */ public function contains(Currency $currency) { return self::CODE === $currency->getCode(); } /** * {@inheritdoc} */ public function subunitFor(Currency $currency) { if ($currency->getCode() !== self::CODE) { throw new UnknownCurrencyException($currency->getCode().' is not bitcoin and is not supported by this currency repository'); } return 8; } /** * {@inheritdoc} */ #[\ReturnTypeWillChange] public function getIterator() { return new \ArrayIterator([new Currency(self::CODE)]); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件