PayPal\Test\Api\CountryCodeTest::getObject PHP 메소드

getObject() 공개 정적인 메소드

Gets Object Instance with Json data filled in
public static getObject ( ) : CountryCode
리턴 PayPal\Api\CountryCode
    public static function getObject()
    {
        return new CountryCode(self::getJson());
    }

Usage Example

예제 #1
0
 /**
  * @depends testSerializationDeserialization
  * @param CarrierAccount $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getPhoneNumber(), "TestSample");
     $this->assertEquals($obj->getExternalCustomerId(), "TestSample");
     $this->assertEquals($obj->getPhoneSource(), "TestSample");
     $this->assertEquals($obj->getCountryCode(), CountryCodeTest::getObject());
 }