PayPal\Api\Address::getType PHP Метод

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

Type of address (e.g., HOME_OR_WORK, GIFT etc).
public getType ( ) : string
Результат string
    public function getType()
    {
        return $this->type;
    }

Usage Example

Пример #1
0
 /**
  * @depends testSerializationDeserialization
  * @param Address $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getLine1(), "TestSample");
     $this->assertEquals($obj->getLine2(), "TestSample");
     $this->assertEquals($obj->getCity(), "TestSample");
     $this->assertEquals($obj->getCountryCode(), "TestSample");
     $this->assertEquals($obj->getPostalCode(), "TestSample");
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getPhone(), "TestSample");
     $this->assertEquals($obj->getNormalizationStatus(), "TestSample");
     $this->assertEquals($obj->getStatus(), "TestSample");
     $this->assertEquals($obj->getType(), "TestSample");
 }