1 | <?php |
||
20 | abstract class AbstractAccount extends BaseEvent |
||
21 | { |
||
22 | /** |
||
23 | * @var Email |
||
24 | */ |
||
25 | protected $userEmail; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $name; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $phone; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $referrerUserId; |
||
41 | |||
42 | /** |
||
43 | * @var PaymentMethods |
||
44 | */ |
||
45 | protected $paymentMethods; |
||
46 | |||
47 | /** |
||
48 | * @var Address |
||
49 | */ |
||
50 | protected $billingAddress; |
||
51 | |||
52 | /** |
||
53 | * @var Address |
||
54 | */ |
||
55 | protected $shippingAddress; |
||
56 | |||
57 | /** |
||
58 | * @var Promotions |
||
59 | */ |
||
60 | protected $promotions; |
||
61 | |||
62 | /** |
||
63 | * @var string |
||
64 | */ |
||
65 | protected $socialSignOnType; |
||
66 | |||
67 | /** |
||
68 | * @var bool |
||
69 | */ |
||
70 | protected $changedPassword = false; |
||
71 | |||
72 | /** |
||
73 | * @param $type |
||
74 | */ |
||
75 | public function __construct($type) |
||
81 | |||
82 | /** |
||
83 | * @return Email |
||
84 | */ |
||
85 | public function getUserEmail() |
||
89 | |||
90 | /** |
||
91 | * @param Email $userEmail |
||
92 | * |
||
93 | * @return $this |
||
94 | */ |
||
95 | public function setUserEmail(Email $userEmail) |
||
101 | |||
102 | /** |
||
103 | * @return string |
||
104 | */ |
||
105 | public function getName() |
||
109 | |||
110 | /** |
||
111 | * @param string $name |
||
112 | * |
||
113 | * @return $this |
||
114 | */ |
||
115 | public function setName($name) |
||
121 | |||
122 | /** |
||
123 | * @return string |
||
124 | */ |
||
125 | public function getPhone() |
||
129 | |||
130 | /** |
||
131 | * @param string $phone |
||
132 | * |
||
133 | * @return $this |
||
134 | */ |
||
135 | public function setPhone($phone) |
||
141 | |||
142 | /** |
||
143 | * @return string |
||
144 | */ |
||
145 | public function getReferrerUserId() |
||
149 | |||
150 | /** |
||
151 | * @param string $referrerUserId |
||
152 | * |
||
153 | * @return $this |
||
154 | */ |
||
155 | public function setReferrerUserId($referrerUserId) |
||
161 | |||
162 | /** |
||
163 | * @return PaymentMethods |
||
164 | */ |
||
165 | public function getPaymentMethods() |
||
169 | |||
170 | /** |
||
171 | * @param PaymentMethod $paymentMethod |
||
172 | * |
||
173 | * @return $this |
||
174 | */ |
||
175 | public function addPaymentMethod(PaymentMethod $paymentMethod) |
||
181 | |||
182 | /** |
||
183 | * @return Address |
||
184 | */ |
||
185 | public function getBillingAddress() |
||
189 | |||
190 | /** |
||
191 | * @param Address $billingAddress |
||
192 | * |
||
193 | * @return $this |
||
194 | */ |
||
195 | public function setBillingAddress(Address $billingAddress) |
||
201 | |||
202 | /** |
||
203 | * @return Address |
||
204 | */ |
||
205 | public function getShippingAddress() |
||
209 | |||
210 | /** |
||
211 | * @param Address $shippingAddress |
||
212 | * |
||
213 | * @return $this |
||
214 | */ |
||
215 | public function setShippingAddress(Address $shippingAddress) |
||
221 | |||
222 | /** |
||
223 | * @return Promotions |
||
224 | */ |
||
225 | public function getPromotions() |
||
229 | |||
230 | /** |
||
231 | * @param Promotion $promotion |
||
232 | * |
||
233 | * @return $this |
||
234 | */ |
||
235 | public function addPromotion(Promotion $promotion) |
||
241 | |||
242 | /** |
||
243 | * @return string |
||
244 | */ |
||
245 | public function getSocialSignOnType() |
||
249 | |||
250 | /** |
||
251 | * @param string $socialSignOnType |
||
252 | * |
||
253 | * @return $this |
||
254 | */ |
||
255 | public function setSocialSignOnType($socialSignOnType) |
||
265 | |||
266 | /** |
||
267 | * @return bool |
||
268 | */ |
||
269 | public function isChangedPassword() |
||
273 | |||
274 | /** |
||
275 | * @param bool $changedPassword |
||
276 | * |
||
277 | * @return $this |
||
278 | */ |
||
279 | public function setChangedPassword($changedPassword) |
||
285 | } |
||
286 |