for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PaymentGateway\PayPalSdk\Subscriptions;
class Money
{
protected string $currencyCode;
protected string $value;
public function __construct(string $currencyCode, string $value)
$this->currencyCode = $currencyCode;
$this->value = $value;
}
public function getCurrencyCode(): string
return $this->currencyCode;
public function getValue(): string
return $this->value;
public function toArray(): array
return [
'currency_code' => $this->currencyCode,
'value' => $this->value
];