mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
21 lines
379 B
PHP
21 lines
379 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace WooCommerce\PayPalCommerce\Helper;
|
|
|
|
use WooCommerce\PayPalCommerce\ApiClient\Helper\CurrencyGetter;
|
|
|
|
class CurrencyGetterStub extends CurrencyGetter
|
|
{
|
|
private string $currency;
|
|
|
|
public function __construct(string $currency = 'EUR')
|
|
{
|
|
$this->currency = $currency;
|
|
}
|
|
|
|
public function get(): string
|
|
{
|
|
return $this->currency;
|
|
}
|
|
}
|