PayPal\Api\ShippingCost::getTax PHP Method

getTax() public method

The tax percentage on the shipping amount.
public getTax ( ) : Tax
return Tax
    public function getTax()
    {
        return $this->tax;
    }

Usage Example

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