1 <?php
2
3 namespace PayPal\Api;
4
5 /**
6 * Class Address
7 *
8 * Base Address object used as billing address in a payment or extended for Shipping Address.
9 *
10 * @package PayPal\Api
11 *
12 * @property string phone
13 * @property string type
14 */
15 class Address extends BaseAddress
16 {
17 /**
18 * Phone number in E.123 format. 50 characters max.
19 *
20 * @param string $phone
21 *
22 * @return $this
23 */
24 public function setPhone($phone)
25 {
26 $this->phone = $phone;
27 return $this;
28 }
29
30 /**
31 * Phone number in E.123 format. 50 characters max.
32 *
33 * @return string
34 */
35 public function getPhone()
36 {
37 return $this->phone;
38 }
39
40 /**
41 * Type of address (e.g., HOME_OR_WORK, GIFT etc).
42 *
43 * @param string $type
44 *
45 * @return $this
46 */
47 public function setType($type)
48 {
49 $this->type = $type;
50 return $this;
51 }
52
53 /**
54 * Type of address (e.g., HOME_OR_WORK, GIFT etc).
55 *
56 * @return string
57 */
58 public function getType()
59 {
60 return $this->type;
61 }
62 }
63