PayPal\Api\ExternalFunding::getCode PHP Method

getCode() public method

Generic identifier for the external funding
public getCode ( ) : string
return string
    public function getCode()
    {
        return $this->code;
    }

Usage Example

コード例 #1
0
ファイル: ExternalFundingTest.php プロジェクト: Roc4rdho/app
 /**
  * @depends testSerializationDeserialization
  * @param ExternalFunding $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getReferenceId(), "TestSample");
     $this->assertEquals($obj->getCode(), "TestSample");
     $this->assertEquals($obj->getFundingAccountId(), "TestSample");
     $this->assertEquals($obj->getDisplayText(), "TestSample");
     $this->assertEquals($obj->getAmount(), AmountTest::getObject());
 }