The four-digit start year for the card. Required for UK Maestro cards.
public getStartYear ( ) : string | ||
Результат | string |
/** * @depends testSerializationDeserialization * @param PaymentCard $obj */ public function testGetters($obj) { $this->assertEquals($obj->getId(), "TestSample"); $this->assertEquals($obj->getNumber(), "TestSample"); $this->assertEquals($obj->getType(), "TestSample"); $this->assertEquals($obj->getExpireMonth(), 123); $this->assertEquals($obj->getExpireYear(), 123); $this->assertEquals($obj->getStartMonth(), 123); $this->assertEquals($obj->getStartYear(), 123); $this->assertEquals($obj->getCvv2(), 123); $this->assertEquals($obj->getFirstName(), "TestSample"); $this->assertEquals($obj->getLastName(), "TestSample"); $this->assertEquals($obj->getBillingAddress(), AddressTest::getObject()); $this->assertEquals($obj->getExternalCustomerId(), "TestSample"); $this->assertEquals($obj->getStatus(), "TestSample"); $this->assertEquals($obj->getValidUntil(), "TestSample"); $this->assertEquals($obj->getLinks(), LinksTest::getObject()); }