PayPal\Api\InvoiceItem::getTax PHP Méthode

getTax() public méthode

Tax associated with the item.
public getTax ( ) : Tax
Résultat Tax
    public function getTax()
    {
        return $this->tax;
    }

Usage Example

 /**
  * @depends testSerializationDeserialization
  * @param InvoiceItem $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getName(), "TestSample");
     $this->assertEquals($obj->getDescription(), "TestSample");
     $this->assertEquals($obj->getQuantity(), "12.34");
     $this->assertEquals($obj->getUnitPrice(), CurrencyTest::getObject());
     $this->assertEquals($obj->getTax(), TaxTest::getObject());
     $this->assertEquals($obj->getDate(), "TestSample");
     $this->assertEquals($obj->getDiscount(), CostTest::getObject());
 }
All Usage Examples Of PayPal\Api\InvoiceItem::getTax