1 | <?php |
||
22 | class Contact extends BaseType implements TypeInterface |
||
23 | { |
||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | static protected $requiredParams = ['phone_number', 'first_name']; |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | * |
||
34 | * @var array |
||
35 | */ |
||
36 | static protected $map = [ |
||
37 | 'phone_number' => true, |
||
38 | 'first_name' => true, |
||
39 | 'last_name' => true |
||
40 | ]; |
||
41 | |||
42 | /** |
||
43 | * Contact's phone number |
||
44 | * |
||
45 | * @var string |
||
46 | */ |
||
47 | protected $phoneNumber; |
||
48 | |||
49 | /** |
||
50 | * Contact's first name |
||
51 | * |
||
52 | * @var string |
||
53 | */ |
||
54 | protected $firstName; |
||
55 | |||
56 | /** |
||
57 | * Optional. Contact's last name |
||
58 | * |
||
59 | * @var string |
||
60 | */ |
||
61 | protected $lastName; |
||
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getPhoneNumber() |
||
70 | |||
71 | /** |
||
72 | * @param string $phoneNumber |
||
73 | */ |
||
74 | public function setPhoneNumber($phoneNumber) |
||
78 | |||
79 | /** |
||
80 | * @return mixed |
||
81 | */ |
||
82 | public function getFirstName() |
||
86 | |||
87 | /** |
||
88 | * @param mixed $firstName |
||
89 | */ |
||
90 | public function setFirstName($firstName) |
||
94 | |||
95 | /** |
||
96 | * @return string |
||
97 | */ |
||
98 | public function getLastName() |
||
102 | |||
103 | /** |
||
104 | * @param string $lastName |
||
105 | */ |
||
106 | public function setLastName($lastName) |
||
110 | } |
||
111 |