PayPal\Api\Tax::getId PHP Method

getId() public method

The resource ID.
public getId ( ) : string
return string
    public function getId()
    {
        return $this->id;
    }

Usage Example

Example #1
0
 /**
  * @depends testSerializationDeserialization
  * @param Tax $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getName(), "TestSample");
     $this->assertEquals($obj->getPercent(), "12.34");
     $this->assertEquals($obj->getAmount(), CurrencyTest::getObject());
 }