1 | <?php |
||
14 | class Contact extends BaseType implements TypeInterface |
||
15 | { |
||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | static protected $requiredParams = ['phone_number', 'first_name']; |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | * |
||
26 | * @var array |
||
27 | */ |
||
28 | static protected $map = [ |
||
29 | 'phone_number' => true, |
||
30 | 'first_name' => true, |
||
31 | 'last_name' => true, |
||
32 | 'user_id' => true, |
||
33 | 'vcard' => true, |
||
34 | ]; |
||
35 | |||
36 | /** |
||
37 | * Contact's phone number |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | protected $phoneNumber; |
||
42 | |||
43 | /** |
||
44 | * Contact's first name |
||
45 | * |
||
46 | * @var string |
||
47 | */ |
||
48 | protected $firstName; |
||
49 | |||
50 | /** |
||
51 | * Optional. Contact's last name |
||
52 | * |
||
53 | * @var string |
||
54 | */ |
||
55 | protected $lastName; |
||
56 | |||
57 | /** |
||
58 | * Optional. Contact's user identifier in Telegram |
||
59 | * |
||
60 | * @var int |
||
61 | */ |
||
62 | protected $userId; |
||
63 | |||
64 | /** |
||
65 | * Optional. Additional data about the contact in the form of a vCard |
||
66 | * |
||
67 | * @var string |
||
68 | */ |
||
69 | protected $vCard; |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | 2 | public function getFirstName() |
|
78 | |||
79 | /** |
||
80 | * @param string $firstName |
||
81 | */ |
||
82 | 5 | public function setFirstName($firstName) |
|
86 | |||
87 | /** |
||
88 | * @return string |
||
89 | */ |
||
90 | 2 | public function getLastName() |
|
94 | |||
95 | /** |
||
96 | * @param string $lastName |
||
97 | */ |
||
98 | 5 | public function setLastName($lastName) |
|
102 | |||
103 | /** |
||
104 | * @return string |
||
105 | */ |
||
106 | 2 | public function getPhoneNumber() |
|
110 | |||
111 | /** |
||
112 | * @param string $phoneNumber |
||
113 | */ |
||
114 | 5 | public function setPhoneNumber($phoneNumber) |
|
118 | |||
119 | /** |
||
120 | * @return int |
||
121 | */ |
||
122 | 2 | public function getUserId() |
|
126 | |||
127 | /** |
||
128 | * @param int $userId |
||
129 | */ |
||
130 | 5 | public function setUserId($userId) |
|
134 | |||
135 | /** |
||
136 | * @return string |
||
137 | */ |
||
138 | 1 | public function getVCard() |
|
142 | |||
143 | /** |
||
144 | * @param string $vCard |
||
145 | */ |
||
146 | 2 | public function setVCard($vCard) |
|
150 | } |
||
151 |