芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/portal.pulsehost.co.uk/vendor/bitpay/php-client/src/Bitpay/Currency.php
setCode($code); } $this->payoutEnabled = false; $this->payoutFields = array(); } /** * @inheritdoc */ public function getCode() { return $this->code; } /** * This will change the $code to all uppercase * * @param string $code The Currency Code to use, ie USD * @throws Exception Throws an exception if the Currency Code is not supported * @return CurrencyInterface */ public function setCode($code) { if (null !== $code && !in_array(strtoupper($code), self::$availableCurrencies)) { throw new \Bitpay\Client\ArgumentException( sprintf('The currency code "%s" is not supported.', $code) ); } $this->code = strtoupper($code); return $this; } /** * @inheritdoc */ public function getSymbol() { return $this->symbol; } /** * @param string $symbol * * @return CurrencyInterface */ public function setSymbol($symbol) { if (!empty($symbol) && ctype_print($symbol)) { $this->symbol = trim($symbol); } return $this; } /** * @inheritdoc */ public function getPrecision() { return $this->precision; } /** * @param integer $precision * * @return CurrencyInterface */ public function setPrecision($precision) { if (!empty($precision) && ctype_digit(strval($precision))) { $this->precision = (int) $precision; } return $this; } /** * @inheritdoc */ public function getExchangePctFee() { return $this->exchangePercentageFee; } /** * @param string $fee * * @return CurrencyInterface */ public function setExchangePctFee($fee) { if (!empty($fee) && ctype_print($fee)) { $this->exchangePercentageFee = trim($fee); } return $this; } /** * @inheritdoc */ public function isPayoutEnabled() { return $this->payoutEnabled; } /** * @param boolean $enabled * * @return CurrencyInterface */ public function setPayoutEnabled($enabled) { $this->payoutEnabled = (boolean) $enabled; return $this; } /** * @inheritdoc */ public function getName() { return $this->name; } /** * @param string $name * * @return CurrencyInterface */ public function setName($name) { if (!empty($name) && ctype_print($name)) { $this->name = trim($name); } return $this; } /** * @inheritdoc */ public function getPluralName() { return $this->pluralName; } /** * @param string $pluralName * * @return CurrencyInterface */ public function setPluralName($pluralName) { if (!empty($pluralName) && ctype_print($pluralName)) { $this->pluralName = trim($pluralName); } return $this; } /** * @inheritdoc */ public function getAlts() { return $this->alts; } /** * @param array $alts * * @return CurrencyInterface */ public function setAlts($alts) { $this->alts = $alts; return $this; } /** * @inheritdoc */ public function getPayoutFields() { return $this->payoutFields; } /** * @param array $payoutFields * * @return CurrencyInterface */ public function setPayoutFields(array $payoutFields) { $this->payoutFields = $payoutFields; return $this; } }