Total Complexity | 6 |
Total Lines | 74 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class InputContactMessageContent extends InputMessageContentAbstract |
||
6 | { |
||
7 | const ENTITY_TYPE = 'InputContactMessageContent'; |
||
8 | |||
9 | protected $phone_number; |
||
10 | |||
11 | protected $first_name; |
||
12 | |||
13 | protected $last_name; |
||
14 | |||
15 | protected $supportedProperties = [ |
||
16 | 'phone_number' => true, |
||
17 | 'first_name' => true, |
||
18 | 'last_name' => false |
||
19 | ]; |
||
20 | |||
21 | /** |
||
22 | * @return mixed |
||
23 | */ |
||
24 | public function getPhoneNumber() |
||
25 | { |
||
26 | return $this->phone_number; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param mixed $phone_number |
||
31 | * |
||
32 | * @return $this |
||
33 | */ |
||
34 | public function setPhoneNumber($phone_number) |
||
35 | { |
||
36 | $this->phone_number = $phone_number; |
||
37 | |||
38 | return $this; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @return mixed |
||
43 | */ |
||
44 | public function getFirstName() |
||
45 | { |
||
46 | return $this->first_name; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @param mixed $first_name |
||
51 | * |
||
52 | * @return $this |
||
53 | */ |
||
54 | public function setFirstName($first_name) |
||
55 | { |
||
56 | $this->first_name = $first_name; |
||
57 | |||
58 | return $this; |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * @return mixed |
||
63 | */ |
||
64 | public function getLastName() |
||
65 | { |
||
66 | return $this->last_name; |
||
67 | } |
||
68 | |||
69 | /** |
||
70 | * @param mixed $last_name |
||
71 | * |
||
72 | * @return $this |
||
73 | */ |
||
74 | public function setLastName($last_name) |
||
79 | } |
||
80 | } |
||
81 |