PayPal\Api\Credit::getType PHP Method

getType() public method

specifies type of credit
public getType ( ) : string
return string
    public function getType()
    {
        return $this->type;
    }

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");
 }