PayPal\Api\Credit::getId PHP Method

getId() public method

Unique identifier of credit resource.
public getId ( ) : string
return string
    public function getId()
    {
        return $this->id;
    }

Usage Example

Example #1
0
 /**
  * @depends testSerializationDeserialization
  * @param Credit $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getType(), "TestSample");
     $this->assertEquals($obj->getTerms(), "TestSample");
 }