* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * @copyright PayPal */ namespace PaypalAddons\classes\API\Response; class PurchaseUnit { protected $currency; protected $amount; /** * @return string */ public function getCurrency() { return (string) $this->currency; } /** * @param mixed $currency * * @return self */ public function setCurrency($currency) { $this->currency = (string) $currency; return $this; } /** * @return float */ public function getAmount() { return (float) $this->amount; } /** * @param mixed $amount * * @return self */ public function setAmount($amount) { $this->amount = (float) $amount; return $this; } }