PayPal\Api\CarrierAccount::getCountryCode PHP Method

getCountryCode() public method

The ISO 3166-1 alpha-2 country code where the phone number is registered.
public getCountryCode ( ) : CountryCode
return CountryCode
    public function getCountryCode()
    {
        return $this->country_code;
    }

Usage Example

Exemplo n.º 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());
 }