PayPal\Api\PaymentCard::getStatus PHP Method

getStatus() public method

The state of the funding instrument.
public getStatus ( ) : string
return string
    public function getStatus()
    {
        return $this->status;
    }

Usage Example

 /**
  * @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());
 }