PayPal\Api\Address::setType PHP Method

setType() public method

Type of address (e.g., HOME_OR_WORK, GIFT etc).
public setType ( string $type )
$type string
    public function setType($type)
    {
        $this->type = $type;
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 public static function createAddress()
 {
     $addr = new Address();
     $addr->setLine1(self::$line1);
     $addr->setLine2(self::$line2);
     $addr->setCity(self::$city);
     $addr->setState(self::$state);
     $addr->setPostal_code(self::$postalCode);
     $addr->setCountry_code(self::$countryCode);
     $addr->setPhone(self::$phone);
     $addr->setType(self::$type);
     return $addr;
 }