PayPal\Api\CreditCardToken::getLast4 PHP Method

getLast4() public method

Last four digits of the stored credit card number.
public getLast4 ( ) : string
return string
    public function getLast4()
    {
        return $this->last4;
    }

Usage Example

 /**
  * @depends testSerializationDeserialization
  * @param CreditCardToken $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getCreditCardId(), "TestSample");
     $this->assertEquals($obj->getPayerId(), "TestSample");
     $this->assertEquals($obj->getLast4(), "TestSample");
     $this->assertEquals($obj->getType(), "TestSample");
     $this->assertEquals($obj->getExpireMonth(), 123);
     $this->assertEquals($obj->getExpireYear(), 123);
 }