setType() public method

Type of address (e.g., HOME_OR_WORK, GIFT etc).
public setType ( string $type )
$type string
Beispiel #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;
 }