PayPal\Api\CreditCardToken::getLast4 PHP Метод

getLast4() публичный Метод

Last four digits of the stored credit card number.
public getLast4 ( ) : string
Результат 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);
 }