1 | <?php |
||
5 | class Profile extends Form |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | protected $lastName; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $firstName; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $userName; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $about; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $location; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $websiteUrl; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $image; |
||
41 | |||
42 | /** |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $country; |
||
46 | |||
47 | /** |
||
48 | * @var bool |
||
49 | */ |
||
50 | protected $excludeFromSearch = null; |
||
51 | |||
52 | /** |
||
53 | * @var string |
||
54 | */ |
||
55 | protected $locale = null; |
||
56 | |||
57 | /** |
||
58 | * @var string |
||
59 | */ |
||
60 | protected $accountType = null; |
||
61 | |||
62 | /** |
||
63 | * @param mixed $lastName |
||
64 | * @return Profile |
||
65 | */ |
||
66 | public function setLastName($lastName) |
||
67 | { |
||
68 | $this->lastName = $lastName; |
||
69 | return $this; |
||
70 | } |
||
71 | |||
72 | /** |
||
73 | * @param mixed $firstName |
||
74 | * @return Profile |
||
75 | */ |
||
76 | public function setFirstName($firstName) |
||
77 | { |
||
78 | $this->firstName = $firstName; |
||
79 | return $this; |
||
80 | } |
||
81 | |||
82 | /** |
||
83 | * @param mixed $userName |
||
84 | * @return Profile |
||
85 | */ |
||
86 | public function setUserName($userName) |
||
87 | { |
||
88 | $this->userName = $userName; |
||
89 | return $this; |
||
90 | } |
||
91 | |||
92 | /** |
||
93 | * @param mixed $about |
||
94 | * @return Profile |
||
95 | */ |
||
96 | public function setAbout($about) |
||
97 | { |
||
98 | $this->about = $about; |
||
99 | return $this; |
||
100 | } |
||
101 | |||
102 | /** |
||
103 | * @param mixed $location |
||
104 | * @return Profile |
||
105 | */ |
||
106 | public function setLocation($location) |
||
107 | { |
||
108 | $this->location = $location; |
||
109 | return $this; |
||
110 | } |
||
111 | |||
112 | /** |
||
113 | * @param mixed $websiteUrl |
||
114 | * @return Profile |
||
115 | */ |
||
116 | public function setWebsiteUrl($websiteUrl) |
||
117 | { |
||
118 | $this->websiteUrl = $websiteUrl; |
||
119 | return $this; |
||
120 | } |
||
121 | |||
122 | /** |
||
123 | * @param mixed $image |
||
124 | * @return Profile |
||
125 | */ |
||
126 | public function setImage($image) |
||
127 | { |
||
128 | $this->image = $image; |
||
129 | return $this; |
||
130 | } |
||
131 | |||
132 | /** |
||
133 | * @param string $country |
||
134 | * @return Profile |
||
135 | */ |
||
136 | public function setCountry($country) |
||
141 | |||
142 | /** |
||
143 | * @param bool $excludeFromSearch |
||
144 | * @return $this |
||
145 | */ |
||
146 | public function setExcludeFromSearch($excludeFromSearch) |
||
152 | |||
153 | /** |
||
154 | * @param string $locale |
||
155 | * @return Profile |
||
156 | */ |
||
157 | public function setLocale($locale) |
||
162 | |||
163 | /** |
||
164 | * @param string $accountType |
||
165 | * @return Profile |
||
166 | */ |
||
167 | public function setAccountType($accountType) |
||
172 | |||
173 | /** |
||
174 | * @return array |
||
175 | */ |
||
176 | public function getData() |
||
177 | { |
||
178 | return [ |
||
179 | 'last_name' => $this->lastName, |
||
191 | } |