1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class Phone
9 *
10 * Information related to the Payee.
11 *
12 * @package PayPal\Api
13 *
14 * @property string country_code
15 * @property string national_number
16 * @property string extension
17 */
18 class Phone extends PayPalModel
19 {
20 /**
21 * Country code (from in E.164 format)
22 *
23 * @param string $country_code
24 *
25 * @return $this
26 */
27 public function setCountryCode($country_code)
28 {
29 $this->country_code = $country_code;
30 return $this;
31 }
32
33 /**
34 * Country code (from in E.164 format)
35 *
36 * @return string
37 */
38 public function getCountryCode()
39 {
40 return $this->country_code;
41 }
42
43 /**
44 * In-country phone number (from in E.164 format)
45 *
46 * @param string $national_number
47 *
48 * @return $this
49 */
50 public function setNationalNumber($national_number)
51 {
52 $this->national_number = $national_number;
53 return $this;
54 }
55
56 /**
57 * In-country phone number (from in E.164 format)
58 *
59 * @return string
60 */
61 public function getNationalNumber()
62 {
63 return $this->national_number;
64 }
65
66 /**
67 * Phone extension
68 *
69 * @param string $extension
70 *
71 * @return $this
72 */
73 public function setExtension($extension)
74 {
75 $this->extension = $extension;
76 return $this;
77 }
78
79 /**
80 * Phone extension
81 *
82 * @return string
83 */
84 public function getExtension()
85 {
86 return $this->extension;
87 }
88
89 }
90