PayPal\Api\ShippingCost::getAmount PHP Method

getAmount() public method

The shipping cost, as an amount. Valid range is from 0 to 999999.99.
public getAmount ( ) : PayPal\Api\Currency
return PayPal\Api\Currency
    public function getAmount()
    {
        return $this->amount;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @depends testSerializationDeserialization
  * @param ShippingCost $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getAmount(), CurrencyTest::getObject());
     $this->assertEquals($obj->getTax(), TaxTest::getObject());
 }