|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/* |
|
4
|
|
|
* This file is part of EC-CUBE |
|
5
|
|
|
* |
|
6
|
|
|
* Copyright(c) LOCKON CO.,LTD. All Rights Reserved. |
|
7
|
|
|
* |
|
8
|
|
|
* http://www.lockon.co.jp/ |
|
9
|
|
|
* |
|
10
|
|
|
* For the full copyright and license information, please view the LICENSE |
|
11
|
|
|
* file that was distributed with this source code. |
|
12
|
|
|
*/ |
|
13
|
|
|
|
|
14
|
|
|
namespace Eccube\Entity; |
|
15
|
|
|
|
|
16
|
|
|
use Doctrine\ORM\Mapping as ORM; |
|
17
|
|
|
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; |
|
18
|
|
|
use Symfony\Component\Security\Core\User\UserInterface; |
|
19
|
|
|
use Symfony\Component\Validator\Mapping\ClassMetadata; |
|
20
|
|
|
|
|
21
|
|
|
/** |
|
22
|
|
|
* Customer |
|
23
|
|
|
* |
|
24
|
|
|
* @ORM\Table(name="dtb_customer", uniqueConstraints={@ORM\UniqueConstraint(name="secret_key", columns={"secret_key"})}, indexes={@ORM\Index(name="dtb_customer_buy_times_idx", columns={"buy_times"}), @ORM\Index(name="dtb_customer_buy_total_idx", columns={"buy_total"}), @ORM\Index(name="dtb_customer_create_date_idx", columns={"create_date"}), @ORM\Index(name="dtb_customer_update_date_idx", columns={"update_date"}), @ORM\Index(name="dtb_customer_last_buy_date_idx", columns={"last_buy_date"}), @ORM\Index(name="dtb_customer_email_idx", columns={"email"})}) |
|
25
|
|
|
* @ORM\InheritanceType("SINGLE_TABLE") |
|
26
|
|
|
* @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255) |
|
27
|
|
|
* @ORM\HasLifecycleCallbacks() |
|
28
|
|
|
* @ORM\Entity(repositoryClass="Eccube\Repository\CustomerRepository") |
|
29
|
|
|
*/ |
|
30
|
|
|
class Customer extends \Eccube\Entity\AbstractEntity implements UserInterface |
|
31
|
|
|
{ |
|
32
|
|
|
/** |
|
33
|
|
|
* @var int |
|
34
|
|
|
* |
|
35
|
|
|
* @ORM\Column(name="id", type="integer", options={"unsigned":true}) |
|
36
|
|
|
* @ORM\Id |
|
37
|
|
|
* @ORM\GeneratedValue(strategy="IDENTITY") |
|
38
|
|
|
*/ |
|
39
|
|
|
private $id; |
|
40
|
|
|
|
|
41
|
|
|
/** |
|
42
|
|
|
* @var string |
|
43
|
|
|
* |
|
44
|
|
|
* @ORM\Column(name="name01", type="string", length=255) |
|
45
|
|
|
*/ |
|
46
|
|
|
private $name01; |
|
47
|
|
|
|
|
48
|
|
|
/** |
|
49
|
|
|
* @var string |
|
50
|
|
|
* |
|
51
|
|
|
* @ORM\Column(name="name02", type="string", length=255) |
|
52
|
|
|
*/ |
|
53
|
|
|
private $name02; |
|
54
|
|
|
|
|
55
|
|
|
/** |
|
56
|
|
|
* @var string|null |
|
57
|
|
|
* |
|
58
|
|
|
* @ORM\Column(name="kana01", type="string", length=255, nullable=true) |
|
59
|
|
|
*/ |
|
60
|
|
|
private $kana01; |
|
61
|
|
|
|
|
62
|
|
|
/** |
|
63
|
|
|
* @var string|null |
|
64
|
|
|
* |
|
65
|
|
|
* @ORM\Column(name="kana02", type="string", length=255, nullable=true) |
|
66
|
|
|
*/ |
|
67
|
|
|
private $kana02; |
|
68
|
|
|
|
|
69
|
|
|
/** |
|
70
|
|
|
* @var string|null |
|
71
|
|
|
* |
|
72
|
|
|
* @ORM\Column(name="company_name", type="string", length=255, nullable=true) |
|
73
|
|
|
*/ |
|
74
|
|
|
private $company_name; |
|
75
|
|
|
|
|
76
|
|
|
/** |
|
77
|
|
|
* @var string|null |
|
78
|
|
|
* |
|
79
|
|
|
* @ORM\Column(name="postal_code", type="string", length=8, nullable=true) |
|
80
|
|
|
*/ |
|
81
|
|
|
private $postal_code; |
|
82
|
|
|
|
|
83
|
|
|
/** |
|
84
|
|
|
* @var string|null |
|
85
|
|
|
* |
|
86
|
|
|
* @ORM\Column(name="addr01", type="string", length=255, nullable=true) |
|
87
|
|
|
*/ |
|
88
|
|
|
private $addr01; |
|
89
|
|
|
|
|
90
|
|
|
/** |
|
91
|
|
|
* @var string|null |
|
92
|
|
|
* |
|
93
|
|
|
* @ORM\Column(name="addr02", type="string", length=255, nullable=true) |
|
94
|
|
|
*/ |
|
95
|
|
|
private $addr02; |
|
96
|
|
|
|
|
97
|
|
|
/** |
|
98
|
|
|
* @var string |
|
99
|
|
|
* |
|
100
|
|
|
* @ORM\Column(name="email", type="string", length=255) |
|
101
|
|
|
*/ |
|
102
|
|
|
private $email; |
|
103
|
|
|
|
|
104
|
|
|
/** |
|
105
|
|
|
* @var string|null |
|
106
|
|
|
* |
|
107
|
|
|
* @ORM\Column(name="phone_number", type="string", length=14, nullable=true) |
|
108
|
|
|
*/ |
|
109
|
|
|
private $phone_number; |
|
110
|
|
|
|
|
111
|
|
|
/** |
|
112
|
|
|
* @var \DateTime|null |
|
113
|
|
|
* |
|
114
|
|
|
* @ORM\Column(name="birth", type="datetimetz", nullable=true) |
|
115
|
|
|
*/ |
|
116
|
|
|
private $birth; |
|
117
|
|
|
|
|
118
|
|
|
/** |
|
119
|
|
|
* @var string|null |
|
120
|
|
|
* |
|
121
|
|
|
* @ORM\Column(name="password", type="string", length=255, nullable=true) |
|
122
|
|
|
*/ |
|
123
|
|
|
private $password; |
|
124
|
|
|
|
|
125
|
|
|
/** |
|
126
|
|
|
* @var string|null |
|
127
|
|
|
* |
|
128
|
|
|
* @ORM\Column(name="salt", type="string", length=255, nullable=true) |
|
129
|
|
|
*/ |
|
130
|
|
|
private $salt; |
|
131
|
|
|
|
|
132
|
|
|
/** |
|
133
|
|
|
* @var string |
|
134
|
|
|
* |
|
135
|
|
|
* @ORM\Column(name="secret_key", type="string", length=255) |
|
136
|
|
|
*/ |
|
137
|
|
|
private $secret_key; |
|
138
|
|
|
|
|
139
|
|
|
/** |
|
140
|
|
|
* @var \DateTime|null |
|
141
|
|
|
* |
|
142
|
|
|
* @ORM\Column(name="first_buy_date", type="datetimetz", nullable=true) |
|
143
|
|
|
*/ |
|
144
|
|
|
private $first_buy_date; |
|
145
|
|
|
|
|
146
|
|
|
/** |
|
147
|
|
|
* @var \DateTime|null |
|
148
|
|
|
* |
|
149
|
|
|
* @ORM\Column(name="last_buy_date", type="datetimetz", nullable=true) |
|
150
|
|
|
*/ |
|
151
|
|
|
private $last_buy_date; |
|
152
|
|
|
|
|
153
|
|
|
/** |
|
154
|
|
|
* @var string|null |
|
155
|
|
|
* |
|
156
|
|
|
* @ORM\Column(name="buy_times", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0}) |
|
157
|
|
|
*/ |
|
158
|
|
|
private $buy_times = 0; |
|
159
|
|
|
|
|
160
|
|
|
/** |
|
161
|
|
|
* @var string|null |
|
162
|
|
|
* |
|
163
|
|
|
* @ORM\Column(name="buy_total", type="decimal", precision=12, scale=2, nullable=true, options={"unsigned":true,"default":0}) |
|
164
|
|
|
*/ |
|
165
|
|
|
private $buy_total = 0; |
|
166
|
|
|
|
|
167
|
|
|
/** |
|
168
|
|
|
* @var string|null |
|
169
|
|
|
* |
|
170
|
|
|
* @ORM\Column(name="note", type="string", length=4000, nullable=true) |
|
171
|
|
|
*/ |
|
172
|
|
|
private $note; |
|
173
|
|
|
|
|
174
|
|
|
/** |
|
175
|
|
|
* @var string|null |
|
176
|
|
|
* |
|
177
|
|
|
* @ORM\Column(name="reset_key", type="string", length=255, nullable=true) |
|
178
|
|
|
*/ |
|
179
|
|
|
private $reset_key; |
|
180
|
|
|
|
|
181
|
|
|
/** |
|
182
|
|
|
* @var \DateTime|null |
|
183
|
|
|
* |
|
184
|
|
|
* @ORM\Column(name="reset_expire", type="datetimetz", nullable=true) |
|
185
|
|
|
*/ |
|
186
|
|
|
private $reset_expire; |
|
187
|
|
|
|
|
188
|
|
|
/** |
|
189
|
|
|
* @var string |
|
190
|
|
|
* |
|
191
|
|
|
* @ORM\Column(name="point", type="decimal", precision=12, scale=0, options={"unsigned":false,"default":0}) |
|
192
|
|
|
*/ |
|
193
|
|
|
private $point = '0'; |
|
194
|
|
|
|
|
195
|
|
|
/** |
|
196
|
|
|
* @var \DateTime |
|
197
|
|
|
* |
|
198
|
|
|
* @ORM\Column(name="create_date", type="datetimetz") |
|
199
|
|
|
*/ |
|
200
|
|
|
private $create_date; |
|
201
|
|
|
|
|
202
|
|
|
/** |
|
203
|
|
|
* @var \DateTime |
|
204
|
|
|
* |
|
205
|
|
|
* @ORM\Column(name="update_date", type="datetimetz") |
|
206
|
|
|
*/ |
|
207
|
|
|
private $update_date; |
|
208
|
|
|
|
|
209
|
|
|
/** |
|
210
|
|
|
* @var \Doctrine\Common\Collections\Collection |
|
211
|
|
|
* |
|
212
|
|
|
* @ORM\OneToMany(targetEntity="Eccube\Entity\CustomerFavoriteProduct", mappedBy="Customer", cascade={"remove"}) |
|
213
|
|
|
*/ |
|
214
|
|
|
private $CustomerFavoriteProducts; |
|
215
|
|
|
|
|
216
|
|
|
/** |
|
217
|
|
|
* @var \Doctrine\Common\Collections\Collection |
|
218
|
|
|
* |
|
219
|
|
|
* @ORM\OneToMany(targetEntity="Eccube\Entity\CustomerAddress", mappedBy="Customer", cascade={"remove"}) |
|
220
|
|
|
* @ORM\OrderBy({ |
|
221
|
|
|
* "id"="ASC" |
|
222
|
|
|
* }) |
|
223
|
|
|
*/ |
|
224
|
|
|
private $CustomerAddresses; |
|
225
|
|
|
|
|
226
|
|
|
/** |
|
227
|
|
|
* @var \Doctrine\Common\Collections\Collection |
|
228
|
|
|
* |
|
229
|
|
|
* @ORM\OneToMany(targetEntity="Eccube\Entity\Order", mappedBy="Customer") |
|
230
|
|
|
*/ |
|
231
|
|
|
private $Orders; |
|
232
|
|
|
|
|
233
|
|
|
/** |
|
234
|
|
|
* @var \Eccube\Entity\Master\CustomerStatus |
|
235
|
|
|
* |
|
236
|
|
|
* @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\CustomerStatus") |
|
237
|
|
|
* @ORM\JoinColumns({ |
|
238
|
|
|
* @ORM\JoinColumn(name="customer_status_id", referencedColumnName="id") |
|
239
|
|
|
* }) |
|
240
|
|
|
*/ |
|
241
|
|
|
private $Status; |
|
242
|
|
|
|
|
243
|
|
|
/** |
|
244
|
|
|
* @var \Eccube\Entity\Master\Sex |
|
245
|
|
|
* |
|
246
|
|
|
* @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Sex") |
|
247
|
|
|
* @ORM\JoinColumns({ |
|
248
|
|
|
* @ORM\JoinColumn(name="sex_id", referencedColumnName="id") |
|
249
|
|
|
* }) |
|
250
|
|
|
*/ |
|
251
|
|
|
private $Sex; |
|
252
|
|
|
|
|
253
|
|
|
/** |
|
254
|
|
|
* @var \Eccube\Entity\Master\Job |
|
255
|
|
|
* |
|
256
|
|
|
* @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Job") |
|
257
|
|
|
* @ORM\JoinColumns({ |
|
258
|
|
|
* @ORM\JoinColumn(name="job_id", referencedColumnName="id") |
|
259
|
|
|
* }) |
|
260
|
|
|
*/ |
|
261
|
|
|
private $Job; |
|
262
|
|
|
|
|
263
|
|
|
/** |
|
264
|
|
|
* @var \Eccube\Entity\Master\Country |
|
265
|
|
|
* |
|
266
|
|
|
* @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Country") |
|
267
|
|
|
* @ORM\JoinColumns({ |
|
268
|
|
|
* @ORM\JoinColumn(name="country_id", referencedColumnName="id") |
|
269
|
|
|
* }) |
|
270
|
|
|
*/ |
|
271
|
|
|
private $Country; |
|
272
|
|
|
|
|
273
|
|
|
/** |
|
274
|
|
|
* @var \Eccube\Entity\Master\Pref |
|
275
|
|
|
* |
|
276
|
|
|
* @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Pref") |
|
277
|
|
|
* @ORM\JoinColumns({ |
|
278
|
|
|
* @ORM\JoinColumn(name="pref_id", referencedColumnName="id") |
|
279
|
|
|
* }) |
|
280
|
|
|
*/ |
|
281
|
|
|
private $Pref; |
|
282
|
|
|
|
|
283
|
|
|
/** |
|
284
|
|
|
* Constructor |
|
285
|
|
|
*/ |
|
286
|
412 |
|
public function __construct() |
|
287
|
|
|
{ |
|
288
|
412 |
|
$this->CustomerFavoriteProducts = new \Doctrine\Common\Collections\ArrayCollection(); |
|
289
|
412 |
|
$this->CustomerAddresses = new \Doctrine\Common\Collections\ArrayCollection(); |
|
290
|
412 |
|
$this->Orders = new \Doctrine\Common\Collections\ArrayCollection(); |
|
291
|
|
|
|
|
292
|
412 |
|
$this->setBuyTimes(0); |
|
293
|
412 |
|
$this->setBuyTotal(0); |
|
294
|
|
|
} |
|
295
|
|
|
|
|
296
|
|
|
/** |
|
297
|
|
|
* @return string |
|
298
|
|
|
*/ |
|
299
|
|
|
public function __toString() |
|
300
|
|
|
{ |
|
301
|
|
|
return (string) ($this->getName01().' '.$this->getName02()); |
|
302
|
|
|
} |
|
303
|
|
|
|
|
304
|
|
|
/** |
|
305
|
|
|
* {@inheritdoc} |
|
306
|
|
|
*/ |
|
307
|
2 |
|
public function getRoles() |
|
308
|
|
|
{ |
|
309
|
2 |
|
return ['ROLE_USER']; |
|
310
|
|
|
} |
|
311
|
|
|
|
|
312
|
|
|
/** |
|
313
|
|
|
* {@inheritdoc} |
|
314
|
|
|
*/ |
|
315
|
77 |
|
public function getUsername() |
|
316
|
|
|
{ |
|
317
|
77 |
|
return $this->email; |
|
318
|
|
|
} |
|
319
|
|
|
|
|
320
|
|
|
/** |
|
321
|
|
|
* {@inheritdoc} |
|
322
|
|
|
*/ |
|
323
|
|
|
public function eraseCredentials() |
|
324
|
|
|
{ |
|
325
|
|
|
} |
|
326
|
|
|
|
|
327
|
|
|
// TODO: できればFormTypeで行いたい |
|
328
|
45 |
|
public static function loadValidatorMetadata(ClassMetadata $metadata) |
|
329
|
|
|
{ |
|
330
|
45 |
|
$metadata->addConstraint(new UniqueEntity([ |
|
331
|
45 |
|
'fields' => 'email', |
|
332
|
|
|
'message' => 'customer.text.error.email_registered', |
|
333
|
|
|
'repositoryMethod' => 'getNonWithdrawingCustomers', |
|
334
|
|
|
])); |
|
335
|
|
|
} |
|
336
|
|
|
|
|
337
|
|
|
/** |
|
338
|
|
|
* Get id. |
|
339
|
|
|
* |
|
340
|
|
|
* @return int |
|
341
|
|
|
*/ |
|
342
|
123 |
|
public function getId() |
|
343
|
|
|
{ |
|
344
|
123 |
|
return $this->id; |
|
345
|
|
|
} |
|
346
|
|
|
|
|
347
|
|
|
/** |
|
348
|
|
|
* Set name01. |
|
349
|
|
|
* |
|
350
|
|
|
* @param string $name01 |
|
351
|
|
|
* |
|
352
|
|
|
* @return Customer |
|
353
|
|
|
*/ |
|
354
|
352 |
|
public function setName01($name01) |
|
355
|
|
|
{ |
|
356
|
352 |
|
$this->name01 = $name01; |
|
357
|
|
|
|
|
358
|
352 |
|
return $this; |
|
359
|
|
|
} |
|
360
|
|
|
|
|
361
|
|
|
/** |
|
362
|
|
|
* Get name01. |
|
363
|
|
|
* |
|
364
|
|
|
* @return string |
|
365
|
|
|
*/ |
|
366
|
135 |
|
public function getName01() |
|
367
|
|
|
{ |
|
368
|
135 |
|
return $this->name01; |
|
369
|
|
|
} |
|
370
|
|
|
|
|
371
|
|
|
/** |
|
372
|
|
|
* Set name02. |
|
373
|
|
|
* |
|
374
|
|
|
* @param string $name02 |
|
375
|
|
|
* |
|
376
|
|
|
* @return Customer |
|
377
|
|
|
*/ |
|
378
|
352 |
|
public function setName02($name02) |
|
379
|
|
|
{ |
|
380
|
352 |
|
$this->name02 = $name02; |
|
381
|
|
|
|
|
382
|
352 |
|
return $this; |
|
383
|
|
|
} |
|
384
|
|
|
|
|
385
|
|
|
/** |
|
386
|
|
|
* Get name02. |
|
387
|
|
|
* |
|
388
|
|
|
* @return string |
|
389
|
|
|
*/ |
|
390
|
132 |
|
public function getName02() |
|
391
|
|
|
{ |
|
392
|
132 |
|
return $this->name02; |
|
393
|
|
|
} |
|
394
|
|
|
|
|
395
|
|
|
/** |
|
396
|
|
|
* Set kana01. |
|
397
|
|
|
* |
|
398
|
|
|
* @param string|null $kana01 |
|
399
|
|
|
* |
|
400
|
|
|
* @return Customer |
|
401
|
|
|
*/ |
|
402
|
352 |
|
public function setKana01($kana01 = null) |
|
403
|
|
|
{ |
|
404
|
352 |
|
$this->kana01 = $kana01; |
|
405
|
|
|
|
|
406
|
352 |
|
return $this; |
|
407
|
|
|
} |
|
408
|
|
|
|
|
409
|
|
|
/** |
|
410
|
|
|
* Get kana01. |
|
411
|
|
|
* |
|
412
|
|
|
* @return string|null |
|
413
|
|
|
*/ |
|
414
|
109 |
|
public function getKana01() |
|
415
|
|
|
{ |
|
416
|
109 |
|
return $this->kana01; |
|
417
|
|
|
} |
|
418
|
|
|
|
|
419
|
|
|
/** |
|
420
|
|
|
* Set kana02. |
|
421
|
|
|
* |
|
422
|
|
|
* @param string|null $kana02 |
|
423
|
|
|
* |
|
424
|
|
|
* @return Customer |
|
425
|
|
|
*/ |
|
426
|
352 |
|
public function setKana02($kana02 = null) |
|
427
|
|
|
{ |
|
428
|
352 |
|
$this->kana02 = $kana02; |
|
429
|
|
|
|
|
430
|
352 |
|
return $this; |
|
431
|
|
|
} |
|
432
|
|
|
|
|
433
|
|
|
/** |
|
434
|
|
|
* Get kana02. |
|
435
|
|
|
* |
|
436
|
|
|
* @return string|null |
|
437
|
|
|
*/ |
|
438
|
110 |
|
public function getKana02() |
|
439
|
|
|
{ |
|
440
|
110 |
|
return $this->kana02; |
|
441
|
|
|
} |
|
442
|
|
|
|
|
443
|
|
|
/** |
|
444
|
|
|
* Set companyName. |
|
445
|
|
|
* |
|
446
|
|
|
* @param string|null $companyName |
|
447
|
|
|
* |
|
448
|
|
|
* @return Customer |
|
449
|
|
|
*/ |
|
450
|
339 |
|
public function setCompanyName($companyName = null) |
|
451
|
|
|
{ |
|
452
|
339 |
|
$this->company_name = $companyName; |
|
453
|
|
|
|
|
454
|
339 |
|
return $this; |
|
455
|
|
|
} |
|
456
|
|
|
|
|
457
|
|
|
/** |
|
458
|
|
|
* Get companyName. |
|
459
|
|
|
* |
|
460
|
|
|
* @return string|null |
|
461
|
|
|
*/ |
|
462
|
105 |
|
public function getCompanyName() |
|
463
|
|
|
{ |
|
464
|
105 |
|
return $this->company_name; |
|
465
|
|
|
} |
|
466
|
|
|
|
|
467
|
|
|
/** |
|
468
|
|
|
* Set postal_code. |
|
469
|
|
|
* |
|
470
|
|
|
* @param string|null $postal_code |
|
471
|
|
|
* |
|
472
|
|
|
* @return Customer |
|
473
|
|
|
*/ |
|
474
|
352 |
|
public function setPostalCode($postal_code = null) |
|
475
|
|
|
{ |
|
476
|
352 |
|
$this->postal_code = $postal_code; |
|
477
|
|
|
|
|
478
|
352 |
|
return $this; |
|
479
|
|
|
} |
|
480
|
|
|
|
|
481
|
|
|
/** |
|
482
|
|
|
* Get postal_code. |
|
483
|
|
|
* |
|
484
|
|
|
* @return string|null |
|
485
|
|
|
*/ |
|
486
|
106 |
|
public function getPostalCode() |
|
487
|
|
|
{ |
|
488
|
106 |
|
return $this->postal_code; |
|
489
|
|
|
} |
|
490
|
|
|
|
|
491
|
|
|
/** |
|
492
|
|
|
* Set addr01. |
|
493
|
|
|
* |
|
494
|
|
|
* @param string|null $addr01 |
|
495
|
|
|
* |
|
496
|
|
|
* @return Customer |
|
497
|
|
|
*/ |
|
498
|
352 |
|
public function setAddr01($addr01 = null) |
|
499
|
|
|
{ |
|
500
|
352 |
|
$this->addr01 = $addr01; |
|
501
|
|
|
|
|
502
|
352 |
|
return $this; |
|
503
|
|
|
} |
|
504
|
|
|
|
|
505
|
|
|
/** |
|
506
|
|
|
* Get addr01. |
|
507
|
|
|
* |
|
508
|
|
|
* @return string|null |
|
509
|
|
|
*/ |
|
510
|
106 |
|
public function getAddr01() |
|
511
|
|
|
{ |
|
512
|
106 |
|
return $this->addr01; |
|
513
|
|
|
} |
|
514
|
|
|
|
|
515
|
|
|
/** |
|
516
|
|
|
* Set addr02. |
|
517
|
|
|
* |
|
518
|
|
|
* @param string|null $addr02 |
|
519
|
|
|
* |
|
520
|
|
|
* @return Customer |
|
521
|
|
|
*/ |
|
522
|
352 |
|
public function setAddr02($addr02 = null) |
|
523
|
|
|
{ |
|
524
|
352 |
|
$this->addr02 = $addr02; |
|
525
|
|
|
|
|
526
|
352 |
|
return $this; |
|
527
|
|
|
} |
|
528
|
|
|
|
|
529
|
|
|
/** |
|
530
|
|
|
* Get addr02. |
|
531
|
|
|
* |
|
532
|
|
|
* @return string|null |
|
533
|
|
|
*/ |
|
534
|
106 |
|
public function getAddr02() |
|
535
|
|
|
{ |
|
536
|
106 |
|
return $this->addr02; |
|
537
|
|
|
} |
|
538
|
|
|
|
|
539
|
|
|
/** |
|
540
|
|
|
* Set email. |
|
541
|
|
|
* |
|
542
|
|
|
* @param string $email |
|
543
|
|
|
* |
|
544
|
|
|
* @return Customer |
|
545
|
|
|
*/ |
|
546
|
352 |
|
public function setEmail($email) |
|
547
|
|
|
{ |
|
548
|
352 |
|
$this->email = $email; |
|
549
|
|
|
|
|
550
|
352 |
|
return $this; |
|
551
|
|
|
} |
|
552
|
|
|
|
|
553
|
|
|
/** |
|
554
|
|
|
* Get email. |
|
555
|
|
|
* |
|
556
|
|
|
* @return string |
|
557
|
|
|
*/ |
|
558
|
74 |
|
public function getEmail() |
|
559
|
|
|
{ |
|
560
|
74 |
|
return $this->email; |
|
561
|
|
|
} |
|
562
|
|
|
|
|
563
|
|
|
/** |
|
564
|
|
|
* Set phone_number. |
|
565
|
|
|
* |
|
566
|
|
|
* @param string|null $phone_number |
|
567
|
|
|
* |
|
568
|
|
|
* @return Customer |
|
569
|
|
|
*/ |
|
570
|
352 |
|
public function setPhoneNumber($phone_number = null) |
|
571
|
|
|
{ |
|
572
|
352 |
|
$this->phone_number = $phone_number; |
|
573
|
|
|
|
|
574
|
352 |
|
return $this; |
|
575
|
|
|
} |
|
576
|
|
|
|
|
577
|
|
|
/** |
|
578
|
|
|
* Get phone_number. |
|
579
|
|
|
* |
|
580
|
|
|
* @return string|null |
|
581
|
|
|
*/ |
|
582
|
114 |
|
public function getPhoneNumber() |
|
583
|
|
|
{ |
|
584
|
114 |
|
return $this->phone_number; |
|
585
|
|
|
} |
|
586
|
|
|
|
|
587
|
|
|
/** |
|
588
|
|
|
* Set birth. |
|
589
|
|
|
* |
|
590
|
|
|
* @param \DateTime|null $birth |
|
591
|
|
|
* |
|
592
|
|
|
* @return Customer |
|
593
|
|
|
*/ |
|
594
|
338 |
|
public function setBirth($birth = null) |
|
595
|
|
|
{ |
|
596
|
338 |
|
$this->birth = $birth; |
|
597
|
|
|
|
|
598
|
338 |
|
return $this; |
|
599
|
|
|
} |
|
600
|
|
|
|
|
601
|
|
|
/** |
|
602
|
|
|
* Get birth. |
|
603
|
|
|
* |
|
604
|
|
|
* @return \DateTime|null |
|
605
|
|
|
*/ |
|
606
|
58 |
|
public function getBirth() |
|
607
|
|
|
{ |
|
608
|
58 |
|
return $this->birth; |
|
609
|
|
|
} |
|
610
|
|
|
|
|
611
|
|
|
/** |
|
612
|
|
|
* Set password. |
|
613
|
|
|
* |
|
614
|
|
|
* @param string|null $password |
|
615
|
|
|
* |
|
616
|
|
|
* @return Customer |
|
617
|
|
|
*/ |
|
618
|
334 |
|
public function setPassword($password = null) |
|
619
|
|
|
{ |
|
620
|
334 |
|
$this->password = $password; |
|
621
|
|
|
|
|
622
|
334 |
|
return $this; |
|
623
|
|
|
} |
|
624
|
|
|
|
|
625
|
|
|
/** |
|
626
|
|
|
* Get password. |
|
627
|
|
|
* |
|
628
|
|
|
* @return string|null |
|
629
|
|
|
*/ |
|
630
|
122 |
|
public function getPassword() |
|
631
|
|
|
{ |
|
632
|
122 |
|
return $this->password; |
|
633
|
|
|
} |
|
634
|
|
|
|
|
635
|
|
|
/** |
|
636
|
|
|
* Set salt. |
|
637
|
|
|
* |
|
638
|
|
|
* @param string|null $salt |
|
639
|
|
|
* |
|
640
|
|
|
* @return Customer |
|
641
|
|
|
*/ |
|
642
|
298 |
|
public function setSalt($salt = null) |
|
643
|
|
|
{ |
|
644
|
298 |
|
$this->salt = $salt; |
|
645
|
|
|
|
|
646
|
298 |
|
return $this; |
|
647
|
|
|
} |
|
648
|
|
|
|
|
649
|
|
|
/** |
|
650
|
|
|
* Get salt. |
|
651
|
|
|
* |
|
652
|
|
|
* @return string|null |
|
653
|
|
|
*/ |
|
654
|
78 |
|
public function getSalt() |
|
655
|
|
|
{ |
|
656
|
78 |
|
return $this->salt; |
|
657
|
|
|
} |
|
658
|
|
|
|
|
659
|
|
|
/** |
|
660
|
|
|
* Set secretKey. |
|
661
|
|
|
* |
|
662
|
|
|
* @param string $secretKey |
|
663
|
|
|
* |
|
664
|
|
|
* @return Customer |
|
665
|
|
|
*/ |
|
666
|
298 |
|
public function setSecretKey($secretKey) |
|
667
|
|
|
{ |
|
668
|
298 |
|
$this->secret_key = $secretKey; |
|
669
|
|
|
|
|
670
|
298 |
|
return $this; |
|
671
|
|
|
} |
|
672
|
|
|
|
|
673
|
|
|
/** |
|
674
|
|
|
* Get secretKey. |
|
675
|
|
|
* |
|
676
|
|
|
* @return string |
|
677
|
|
|
*/ |
|
678
|
5 |
|
public function getSecretKey() |
|
679
|
|
|
{ |
|
680
|
5 |
|
return $this->secret_key; |
|
681
|
|
|
} |
|
682
|
|
|
|
|
683
|
|
|
/** |
|
684
|
|
|
* Set firstBuyDate. |
|
685
|
|
|
* |
|
686
|
|
|
* @param \DateTime|null $firstBuyDate |
|
687
|
|
|
* |
|
688
|
|
|
* @return Customer |
|
689
|
|
|
*/ |
|
690
|
12 |
|
public function setFirstBuyDate($firstBuyDate = null) |
|
691
|
|
|
{ |
|
692
|
12 |
|
$this->first_buy_date = $firstBuyDate; |
|
693
|
|
|
|
|
694
|
12 |
|
return $this; |
|
695
|
|
|
} |
|
696
|
|
|
|
|
697
|
|
|
/** |
|
698
|
|
|
* Get firstBuyDate. |
|
699
|
|
|
* |
|
700
|
|
|
* @return \DateTime|null |
|
701
|
|
|
*/ |
|
702
|
7 |
|
public function getFirstBuyDate() |
|
703
|
|
|
{ |
|
704
|
7 |
|
return $this->first_buy_date; |
|
705
|
|
|
} |
|
706
|
|
|
|
|
707
|
|
|
/** |
|
708
|
|
|
* Set lastBuyDate. |
|
709
|
|
|
* |
|
710
|
|
|
* @param \DateTime|null $lastBuyDate |
|
711
|
|
|
* |
|
712
|
|
|
* @return Customer |
|
713
|
|
|
*/ |
|
714
|
14 |
|
public function setLastBuyDate($lastBuyDate = null) |
|
715
|
|
|
{ |
|
716
|
14 |
|
$this->last_buy_date = $lastBuyDate; |
|
717
|
|
|
|
|
718
|
14 |
|
return $this; |
|
719
|
|
|
} |
|
720
|
|
|
|
|
721
|
|
|
/** |
|
722
|
|
|
* Get lastBuyDate. |
|
723
|
|
|
* |
|
724
|
|
|
* @return \DateTime|null |
|
725
|
|
|
*/ |
|
726
|
4 |
|
public function getLastBuyDate() |
|
727
|
|
|
{ |
|
728
|
4 |
|
return $this->last_buy_date; |
|
729
|
|
|
} |
|
730
|
|
|
|
|
731
|
|
|
/** |
|
732
|
|
|
* Set buyTimes. |
|
733
|
|
|
* |
|
734
|
|
|
* @param string|null $buyTimes |
|
735
|
|
|
* |
|
736
|
|
|
* @return Customer |
|
737
|
|
|
*/ |
|
738
|
412 |
|
public function setBuyTimes($buyTimes = null) |
|
739
|
|
|
{ |
|
740
|
412 |
|
$this->buy_times = $buyTimes; |
|
741
|
|
|
|
|
742
|
412 |
|
return $this; |
|
743
|
|
|
} |
|
744
|
|
|
|
|
745
|
|
|
/** |
|
746
|
|
|
* Get buyTimes. |
|
747
|
|
|
* |
|
748
|
|
|
* @return string|null |
|
749
|
|
|
*/ |
|
750
|
7 |
|
public function getBuyTimes() |
|
751
|
|
|
{ |
|
752
|
7 |
|
return $this->buy_times; |
|
753
|
|
|
} |
|
754
|
|
|
|
|
755
|
|
|
/** |
|
756
|
|
|
* Set buyTotal. |
|
757
|
|
|
* |
|
758
|
|
|
* @param string|null $buyTotal |
|
759
|
|
|
* |
|
760
|
|
|
* @return Customer |
|
761
|
|
|
*/ |
|
762
|
412 |
|
public function setBuyTotal($buyTotal = null) |
|
763
|
|
|
{ |
|
764
|
412 |
|
$this->buy_total = $buyTotal; |
|
765
|
|
|
|
|
766
|
412 |
|
return $this; |
|
767
|
|
|
} |
|
768
|
|
|
|
|
769
|
|
|
/** |
|
770
|
|
|
* Get buyTotal. |
|
771
|
|
|
* |
|
772
|
|
|
* @return string|null |
|
773
|
|
|
*/ |
|
774
|
5 |
|
public function getBuyTotal() |
|
775
|
|
|
{ |
|
776
|
5 |
|
return $this->buy_total; |
|
777
|
|
|
} |
|
778
|
|
|
|
|
779
|
|
|
/** |
|
780
|
|
|
* Set note. |
|
781
|
|
|
* |
|
782
|
|
|
* @param string|null $note |
|
783
|
|
|
* |
|
784
|
|
|
* @return Customer |
|
785
|
|
|
*/ |
|
786
|
22 |
|
public function setNote($note = null) |
|
787
|
|
|
{ |
|
788
|
22 |
|
$this->note = $note; |
|
789
|
|
|
|
|
790
|
22 |
|
return $this; |
|
791
|
|
|
} |
|
792
|
|
|
|
|
793
|
|
|
/** |
|
794
|
|
|
* Get note. |
|
795
|
|
|
* |
|
796
|
|
|
* @return string|null |
|
797
|
|
|
*/ |
|
798
|
30 |
|
public function getNote() |
|
799
|
|
|
{ |
|
800
|
30 |
|
return $this->note; |
|
801
|
|
|
} |
|
802
|
|
|
|
|
803
|
|
|
/** |
|
804
|
|
|
* Set resetKey. |
|
805
|
|
|
* |
|
806
|
|
|
* @param string|null $resetKey |
|
807
|
|
|
* |
|
808
|
|
|
* @return Customer |
|
809
|
|
|
*/ |
|
810
|
2 |
|
public function setResetKey($resetKey = null) |
|
811
|
|
|
{ |
|
812
|
2 |
|
$this->reset_key = $resetKey; |
|
813
|
|
|
|
|
814
|
2 |
|
return $this; |
|
815
|
|
|
} |
|
816
|
|
|
|
|
817
|
|
|
/** |
|
818
|
|
|
* Get resetKey. |
|
819
|
|
|
* |
|
820
|
|
|
* @return string|null |
|
821
|
|
|
*/ |
|
822
|
|
|
public function getResetKey() |
|
823
|
|
|
{ |
|
824
|
|
|
return $this->reset_key; |
|
825
|
|
|
} |
|
826
|
|
|
|
|
827
|
|
|
/** |
|
828
|
|
|
* Set resetExpire. |
|
829
|
|
|
* |
|
830
|
|
|
* @param \DateTime|null $resetExpire |
|
831
|
|
|
* |
|
832
|
|
|
* @return Customer |
|
833
|
|
|
*/ |
|
834
|
2 |
|
public function setResetExpire($resetExpire = null) |
|
835
|
|
|
{ |
|
836
|
2 |
|
$this->reset_expire = $resetExpire; |
|
837
|
|
|
|
|
838
|
2 |
|
return $this; |
|
839
|
|
|
} |
|
840
|
|
|
|
|
841
|
|
|
/** |
|
842
|
|
|
* Get resetExpire. |
|
843
|
|
|
* |
|
844
|
|
|
* @return \DateTime|null |
|
845
|
|
|
*/ |
|
846
|
|
|
public function getResetExpire() |
|
847
|
|
|
{ |
|
848
|
|
|
return $this->reset_expire; |
|
849
|
|
|
} |
|
850
|
|
|
|
|
851
|
|
|
/** |
|
852
|
|
|
* Set createDate. |
|
853
|
|
|
* |
|
854
|
|
|
* @param \DateTime $createDate |
|
855
|
|
|
* |
|
856
|
|
|
* @return Customer |
|
857
|
|
|
*/ |
|
858
|
298 |
|
public function setCreateDate($createDate) |
|
859
|
|
|
{ |
|
860
|
298 |
|
$this->create_date = $createDate; |
|
861
|
|
|
|
|
862
|
298 |
|
return $this; |
|
863
|
|
|
} |
|
864
|
|
|
|
|
865
|
|
|
/** |
|
866
|
|
|
* Get createDate. |
|
867
|
|
|
* |
|
868
|
|
|
* @return \DateTime |
|
869
|
|
|
*/ |
|
870
|
1 |
|
public function getCreateDate() |
|
871
|
|
|
{ |
|
872
|
1 |
|
return $this->create_date; |
|
873
|
|
|
} |
|
874
|
|
|
|
|
875
|
|
|
/** |
|
876
|
|
|
* Set updateDate. |
|
877
|
|
|
* |
|
878
|
|
|
* @param \DateTime $updateDate |
|
879
|
|
|
* |
|
880
|
|
|
* @return Customer |
|
881
|
|
|
*/ |
|
882
|
298 |
|
public function setUpdateDate($updateDate) |
|
883
|
|
|
{ |
|
884
|
298 |
|
$this->update_date = $updateDate; |
|
885
|
|
|
|
|
886
|
298 |
|
return $this; |
|
887
|
|
|
} |
|
888
|
|
|
|
|
889
|
|
|
/** |
|
890
|
|
|
* Get updateDate. |
|
891
|
|
|
* |
|
892
|
|
|
* @return \DateTime |
|
893
|
|
|
*/ |
|
894
|
1 |
|
public function getUpdateDate() |
|
895
|
|
|
{ |
|
896
|
1 |
|
return $this->update_date; |
|
897
|
|
|
} |
|
898
|
|
|
|
|
899
|
|
|
/** |
|
900
|
|
|
* Add customerFavoriteProduct. |
|
901
|
|
|
* |
|
902
|
|
|
* @param \Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProduct |
|
903
|
|
|
* |
|
904
|
|
|
* @return Customer |
|
905
|
|
|
*/ |
|
906
|
|
|
public function addCustomerFavoriteProduct(\Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProduct) |
|
907
|
|
|
{ |
|
908
|
|
|
$this->CustomerFavoriteProducts[] = $customerFavoriteProduct; |
|
909
|
|
|
|
|
910
|
|
|
return $this; |
|
911
|
|
|
} |
|
912
|
|
|
|
|
913
|
|
|
/** |
|
914
|
|
|
* Remove customerFavoriteProduct. |
|
915
|
|
|
* |
|
916
|
|
|
* @param \Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProduct |
|
917
|
|
|
* |
|
918
|
|
|
* @return boolean TRUE if this collection contained the specified element, FALSE otherwise. |
|
919
|
|
|
*/ |
|
920
|
|
|
public function removeCustomerFavoriteProduct(\Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProduct) |
|
921
|
|
|
{ |
|
922
|
|
|
return $this->CustomerFavoriteProducts->removeElement($customerFavoriteProduct); |
|
923
|
|
|
} |
|
924
|
|
|
|
|
925
|
|
|
/** |
|
926
|
|
|
* Get customerFavoriteProducts. |
|
927
|
|
|
* |
|
928
|
|
|
* @return \Doctrine\Common\Collections\Collection |
|
929
|
|
|
*/ |
|
930
|
|
|
public function getCustomerFavoriteProducts() |
|
931
|
|
|
{ |
|
932
|
|
|
return $this->CustomerFavoriteProducts; |
|
933
|
|
|
} |
|
934
|
|
|
|
|
935
|
|
|
/** |
|
936
|
|
|
* Add customerAddress. |
|
937
|
|
|
* |
|
938
|
|
|
* @param \Eccube\Entity\CustomerAddress $customerAddress |
|
939
|
|
|
* |
|
940
|
|
|
* @return Customer |
|
941
|
|
|
*/ |
|
942
|
7 |
|
public function addCustomerAddress(\Eccube\Entity\CustomerAddress $customerAddress) |
|
943
|
|
|
{ |
|
944
|
7 |
|
$this->CustomerAddresses[] = $customerAddress; |
|
945
|
|
|
|
|
946
|
7 |
|
return $this; |
|
947
|
|
|
} |
|
948
|
|
|
|
|
949
|
|
|
/** |
|
950
|
|
|
* Remove customerAddress. |
|
951
|
|
|
* |
|
952
|
|
|
* @param \Eccube\Entity\CustomerAddress $customerAddress |
|
953
|
|
|
* |
|
954
|
|
|
* @return boolean TRUE if this collection contained the specified element, FALSE otherwise. |
|
955
|
|
|
*/ |
|
956
|
|
|
public function removeCustomerAddress(\Eccube\Entity\CustomerAddress $customerAddress) |
|
957
|
|
|
{ |
|
958
|
|
|
return $this->CustomerAddresses->removeElement($customerAddress); |
|
959
|
|
|
} |
|
960
|
|
|
|
|
961
|
|
|
/** |
|
962
|
|
|
* Get customerAddresses. |
|
963
|
|
|
* |
|
964
|
|
|
* @return \Doctrine\Common\Collections\Collection |
|
965
|
|
|
*/ |
|
966
|
20 |
|
public function getCustomerAddresses() |
|
967
|
|
|
{ |
|
968
|
20 |
|
return $this->CustomerAddresses; |
|
969
|
|
|
} |
|
970
|
|
|
|
|
971
|
|
|
/** |
|
972
|
|
|
* Add order. |
|
973
|
|
|
* |
|
974
|
|
|
* @param \Eccube\Entity\Order $order |
|
975
|
|
|
* |
|
976
|
|
|
* @return Customer |
|
977
|
|
|
*/ |
|
978
|
1 |
|
public function addOrder(\Eccube\Entity\Order $order) |
|
979
|
|
|
{ |
|
980
|
1 |
|
$this->Orders[] = $order; |
|
981
|
|
|
|
|
982
|
1 |
|
return $this; |
|
983
|
|
|
} |
|
984
|
|
|
|
|
985
|
|
|
/** |
|
986
|
|
|
* Remove order. |
|
987
|
|
|
* |
|
988
|
|
|
* @param \Eccube\Entity\Order $order |
|
989
|
|
|
* |
|
990
|
|
|
* @return boolean TRUE if this collection contained the specified element, FALSE otherwise. |
|
991
|
|
|
*/ |
|
992
|
|
|
public function removeOrder(\Eccube\Entity\Order $order) |
|
993
|
|
|
{ |
|
994
|
|
|
return $this->Orders->removeElement($order); |
|
995
|
|
|
} |
|
996
|
|
|
|
|
997
|
|
|
/** |
|
998
|
|
|
* Get orders. |
|
999
|
|
|
* |
|
1000
|
|
|
* @return \Doctrine\Common\Collections\Collection |
|
1001
|
|
|
*/ |
|
1002
|
3 |
|
public function getOrders() |
|
1003
|
|
|
{ |
|
1004
|
3 |
|
return $this->Orders; |
|
1005
|
|
|
} |
|
1006
|
|
|
|
|
1007
|
|
|
/** |
|
1008
|
|
|
* Set status. |
|
1009
|
|
|
* |
|
1010
|
|
|
* @param \Eccube\Entity\Master\CustomerStatus|null $status |
|
1011
|
|
|
* |
|
1012
|
|
|
* @return Customer |
|
1013
|
|
|
*/ |
|
1014
|
324 |
|
public function setStatus(\Eccube\Entity\Master\CustomerStatus $status = null) |
|
1015
|
|
|
{ |
|
1016
|
324 |
|
$this->Status = $status; |
|
1017
|
|
|
|
|
1018
|
324 |
|
return $this; |
|
1019
|
|
|
} |
|
1020
|
|
|
|
|
1021
|
|
|
/** |
|
1022
|
|
|
* Get status. |
|
1023
|
|
|
* |
|
1024
|
|
|
* @return \Eccube\Entity\Master\CustomerStatus|null |
|
1025
|
|
|
*/ |
|
1026
|
38 |
|
public function getStatus() |
|
1027
|
|
|
{ |
|
1028
|
38 |
|
return $this->Status; |
|
1029
|
|
|
} |
|
1030
|
|
|
|
|
1031
|
|
|
/** |
|
1032
|
|
|
* Set sex. |
|
1033
|
|
|
* |
|
1034
|
|
|
* @param \Eccube\Entity\Master\Sex|null $sex |
|
1035
|
|
|
* |
|
1036
|
|
|
* @return Customer |
|
1037
|
|
|
*/ |
|
1038
|
336 |
|
public function setSex(\Eccube\Entity\Master\Sex $sex = null) |
|
1039
|
|
|
{ |
|
1040
|
336 |
|
$this->Sex = $sex; |
|
1041
|
|
|
|
|
1042
|
336 |
|
return $this; |
|
1043
|
|
|
} |
|
1044
|
|
|
|
|
1045
|
|
|
/** |
|
1046
|
|
|
* Get sex. |
|
1047
|
|
|
* |
|
1048
|
|
|
* @return \Eccube\Entity\Master\Sex|null |
|
1049
|
|
|
*/ |
|
1050
|
58 |
|
public function getSex() |
|
1051
|
|
|
{ |
|
1052
|
58 |
|
return $this->Sex; |
|
1053
|
|
|
} |
|
1054
|
|
|
|
|
1055
|
|
|
/** |
|
1056
|
|
|
* Set job. |
|
1057
|
|
|
* |
|
1058
|
|
|
* @param \Eccube\Entity\Master\Job|null $job |
|
1059
|
|
|
* |
|
1060
|
|
|
* @return Customer |
|
1061
|
|
|
*/ |
|
1062
|
336 |
|
public function setJob(\Eccube\Entity\Master\Job $job = null) |
|
1063
|
|
|
{ |
|
1064
|
336 |
|
$this->Job = $job; |
|
1065
|
|
|
|
|
1066
|
336 |
|
return $this; |
|
1067
|
|
|
} |
|
1068
|
|
|
|
|
1069
|
|
|
/** |
|
1070
|
|
|
* Get job. |
|
1071
|
|
|
* |
|
1072
|
|
|
* @return \Eccube\Entity\Master\Job|null |
|
1073
|
|
|
*/ |
|
1074
|
58 |
|
public function getJob() |
|
1075
|
|
|
{ |
|
1076
|
58 |
|
return $this->Job; |
|
1077
|
|
|
} |
|
1078
|
|
|
|
|
1079
|
|
|
/** |
|
1080
|
|
|
* Set country. |
|
1081
|
|
|
* |
|
1082
|
|
|
* @param \Eccube\Entity\Master\Country|null $country |
|
1083
|
|
|
* |
|
1084
|
|
|
* @return Customer |
|
1085
|
|
|
*/ |
|
1086
|
|
|
public function setCountry(\Eccube\Entity\Master\Country $country = null) |
|
1087
|
|
|
{ |
|
1088
|
|
|
$this->Country = $country; |
|
1089
|
|
|
|
|
1090
|
|
|
return $this; |
|
1091
|
|
|
} |
|
1092
|
|
|
|
|
1093
|
|
|
/** |
|
1094
|
|
|
* Get country. |
|
1095
|
|
|
* |
|
1096
|
|
|
* @return \Eccube\Entity\Master\Country|null |
|
1097
|
|
|
*/ |
|
1098
|
52 |
|
public function getCountry() |
|
1099
|
|
|
{ |
|
1100
|
52 |
|
return $this->Country; |
|
1101
|
|
|
} |
|
1102
|
|
|
|
|
1103
|
|
|
/** |
|
1104
|
|
|
* Set pref. |
|
1105
|
|
|
* |
|
1106
|
|
|
* @param \Eccube\Entity\Master\Pref|null $pref |
|
1107
|
|
|
* |
|
1108
|
|
|
* @return Customer |
|
1109
|
|
|
*/ |
|
1110
|
352 |
|
public function setPref(\Eccube\Entity\Master\Pref $pref = null) |
|
1111
|
|
|
{ |
|
1112
|
352 |
|
$this->Pref = $pref; |
|
1113
|
|
|
|
|
1114
|
352 |
|
return $this; |
|
1115
|
|
|
} |
|
1116
|
|
|
|
|
1117
|
|
|
/** |
|
1118
|
|
|
* Get pref. |
|
1119
|
|
|
* |
|
1120
|
|
|
* @return \Eccube\Entity\Master\Pref|null |
|
1121
|
|
|
*/ |
|
1122
|
125 |
|
public function getPref() |
|
1123
|
|
|
{ |
|
1124
|
125 |
|
return $this->Pref; |
|
1125
|
|
|
} |
|
1126
|
|
|
|
|
1127
|
|
|
/** |
|
1128
|
|
|
* Set point |
|
1129
|
|
|
* |
|
1130
|
|
|
* @param string $point |
|
1131
|
|
|
* |
|
1132
|
|
|
* @return Customer |
|
1133
|
|
|
*/ |
|
1134
|
373 |
|
public function setPoint($point) |
|
1135
|
|
|
{ |
|
1136
|
373 |
|
$this->point = $point; |
|
1137
|
|
|
|
|
1138
|
373 |
|
return $this; |
|
1139
|
|
|
} |
|
1140
|
|
|
|
|
1141
|
|
|
/** |
|
1142
|
|
|
* Get point |
|
1143
|
|
|
* |
|
1144
|
|
|
* @return string |
|
1145
|
|
|
*/ |
|
1146
|
132 |
|
public function getPoint() |
|
1147
|
|
|
{ |
|
1148
|
132 |
|
return $this->point; |
|
1149
|
|
|
} |
|
1150
|
|
|
} |
|
1151
|
|
|
|