PayPal\Api\Payer::getAccountAge PHP Method

getAccountAge() public method

Duration since the payer established account relationship with PayPal in days.
Deprecation: Not publicly available
public getAccountAge ( ) : string
return string
    public function getAccountAge()
    {
        return $this->account_age;
    }

Usage Example

コード例 #1
0
 /**
  * @depends testSerializationDeserialization
  * @param Payer $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getPaymentMethod(), "TestSample");
     $this->assertEquals($obj->getStatus(), "TestSample");
     $this->assertEquals($obj->getAccountType(), "TestSample");
     $this->assertEquals($obj->getAccountAge(), "TestSample");
     $this->assertEquals($obj->getFundingInstruments(), FundingInstrumentTest::getObject());
     $this->assertEquals($obj->getFundingOptionId(), "TestSample");
     $this->assertEquals($obj->getFundingOption(), FundingOptionTest::getObject());
     $this->assertEquals($obj->getRelatedFundingOption(), FundingOptionTest::getObject());
     $this->assertEquals($obj->getPayerInfo(), PayerInfoTest::getObject());
 }