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