Complex classes like Customer often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use Customer, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
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 | 373 | public function __construct() |
|
295 | |||
296 | /** |
||
297 | * @return string |
||
298 | */ |
||
299 | public function __toString() |
||
303 | |||
304 | /** |
||
305 | * {@inheritdoc} |
||
306 | */ |
||
307 | 2 | public function getRoles() |
|
311 | |||
312 | /** |
||
313 | * {@inheritdoc} |
||
314 | */ |
||
315 | 77 | public function getUsername() |
|
319 | |||
320 | /** |
||
321 | * {@inheritdoc} |
||
322 | */ |
||
323 | public function eraseCredentials() |
||
326 | |||
327 | // TODO: できればFormTypeで行いたい |
||
328 | 45 | public static function loadValidatorMetadata(ClassMetadata $metadata) |
|
336 | |||
337 | /** |
||
338 | * Get id. |
||
339 | * |
||
340 | * @return int |
||
341 | */ |
||
342 | 123 | public function getId() |
|
346 | |||
347 | /** |
||
348 | * Set name01. |
||
349 | * |
||
350 | * @param string $name01 |
||
351 | * |
||
352 | * @return Customer |
||
353 | */ |
||
354 | 357 | public function setName01($name01) |
|
360 | |||
361 | /** |
||
362 | * Get name01. |
||
363 | * |
||
364 | * @return string |
||
365 | */ |
||
366 | 135 | public function getName01() |
|
370 | |||
371 | /** |
||
372 | * Set name02. |
||
373 | * |
||
374 | * @param string $name02 |
||
375 | * |
||
376 | * @return Customer |
||
377 | */ |
||
378 | 357 | public function setName02($name02) |
|
384 | |||
385 | /** |
||
386 | * Get name02. |
||
387 | * |
||
388 | * @return string |
||
389 | */ |
||
390 | 132 | public function getName02() |
|
394 | |||
395 | /** |
||
396 | * Set kana01. |
||
397 | * |
||
398 | * @param string|null $kana01 |
||
399 | * |
||
400 | * @return Customer |
||
401 | */ |
||
402 | 357 | public function setKana01($kana01 = null) |
|
408 | |||
409 | /** |
||
410 | * Get kana01. |
||
411 | * |
||
412 | * @return string|null |
||
413 | */ |
||
414 | 109 | public function getKana01() |
|
418 | |||
419 | /** |
||
420 | * Set kana02. |
||
421 | * |
||
422 | * @param string|null $kana02 |
||
423 | * |
||
424 | * @return Customer |
||
425 | */ |
||
426 | 357 | public function setKana02($kana02 = null) |
|
432 | |||
433 | /** |
||
434 | * Get kana02. |
||
435 | * |
||
436 | * @return string|null |
||
437 | */ |
||
438 | 110 | public function getKana02() |
|
442 | |||
443 | /** |
||
444 | * Set companyName. |
||
445 | * |
||
446 | * @param string|null $companyName |
||
447 | * |
||
448 | * @return Customer |
||
449 | */ |
||
450 | 344 | public function setCompanyName($companyName = null) |
|
456 | |||
457 | /** |
||
458 | * Get companyName. |
||
459 | * |
||
460 | * @return string|null |
||
461 | */ |
||
462 | 105 | public function getCompanyName() |
|
466 | |||
467 | /** |
||
468 | * Set postal_code. |
||
469 | * |
||
470 | * @param string|null $postal_code |
||
471 | * |
||
472 | * @return Customer |
||
473 | */ |
||
474 | 357 | public function setPostalCode($postal_code = null) |
|
480 | |||
481 | /** |
||
482 | * Get postal_code. |
||
483 | * |
||
484 | * @return string|null |
||
485 | */ |
||
486 | 106 | public function getPostalCode() |
|
490 | |||
491 | /** |
||
492 | * Set addr01. |
||
493 | * |
||
494 | * @param string|null $addr01 |
||
495 | * |
||
496 | * @return Customer |
||
497 | */ |
||
498 | 357 | public function setAddr01($addr01 = null) |
|
504 | |||
505 | /** |
||
506 | * Get addr01. |
||
507 | * |
||
508 | * @return string|null |
||
509 | */ |
||
510 | 106 | public function getAddr01() |
|
514 | |||
515 | /** |
||
516 | * Set addr02. |
||
517 | * |
||
518 | * @param string|null $addr02 |
||
519 | * |
||
520 | * @return Customer |
||
521 | */ |
||
522 | 357 | public function setAddr02($addr02 = null) |
|
528 | |||
529 | /** |
||
530 | * Get addr02. |
||
531 | * |
||
532 | * @return string|null |
||
533 | */ |
||
534 | 106 | public function getAddr02() |
|
538 | |||
539 | /** |
||
540 | * Set email. |
||
541 | * |
||
542 | * @param string $email |
||
543 | * |
||
544 | * @return Customer |
||
545 | */ |
||
546 | 357 | public function setEmail($email) |
|
552 | |||
553 | /** |
||
554 | * Get email. |
||
555 | * |
||
556 | * @return string |
||
557 | */ |
||
558 | 74 | public function getEmail() |
|
562 | |||
563 | /** |
||
564 | * Set phone_number. |
||
565 | * |
||
566 | * @param string|null $phone_number |
||
567 | * |
||
568 | * @return Customer |
||
569 | */ |
||
570 | 357 | public function setPhoneNumber($phone_number = null) |
|
576 | |||
577 | /** |
||
578 | * Get phone_number. |
||
579 | * |
||
580 | * @return string|null |
||
581 | */ |
||
582 | 114 | public function getPhoneNumber() |
|
586 | |||
587 | /** |
||
588 | * Set birth. |
||
589 | * |
||
590 | * @param \DateTime|null $birth |
||
591 | * |
||
592 | * @return Customer |
||
593 | */ |
||
594 | 343 | public function setBirth($birth = null) |
|
600 | |||
601 | /** |
||
602 | * Get birth. |
||
603 | * |
||
604 | * @return \DateTime|null |
||
605 | */ |
||
606 | 58 | public function getBirth() |
|
610 | |||
611 | /** |
||
612 | * Set password. |
||
613 | * |
||
614 | * @param string|null $password |
||
615 | * |
||
616 | * @return Customer |
||
617 | */ |
||
618 | 339 | public function setPassword($password = null) |
|
624 | |||
625 | /** |
||
626 | * Get password. |
||
627 | * |
||
628 | * @return string|null |
||
629 | */ |
||
630 | 122 | public function getPassword() |
|
634 | |||
635 | /** |
||
636 | * Set salt. |
||
637 | * |
||
638 | * @param string|null $salt |
||
639 | * |
||
640 | * @return Customer |
||
641 | */ |
||
642 | 303 | public function setSalt($salt = null) |
|
648 | |||
649 | /** |
||
650 | * Get salt. |
||
651 | * |
||
652 | * @return string|null |
||
653 | */ |
||
654 | 78 | public function getSalt() |
|
658 | |||
659 | /** |
||
660 | * Set secretKey. |
||
661 | * |
||
662 | * @param string $secretKey |
||
663 | * |
||
664 | * @return Customer |
||
665 | */ |
||
666 | 303 | public function setSecretKey($secretKey) |
|
672 | |||
673 | /** |
||
674 | * Get secretKey. |
||
675 | * |
||
676 | * @return string |
||
677 | */ |
||
678 | 5 | public function getSecretKey() |
|
682 | |||
683 | /** |
||
684 | * Set firstBuyDate. |
||
685 | * |
||
686 | * @param \DateTime|null $firstBuyDate |
||
687 | * |
||
688 | * @return Customer |
||
689 | */ |
||
690 | 12 | public function setFirstBuyDate($firstBuyDate = null) |
|
696 | |||
697 | /** |
||
698 | * Get firstBuyDate. |
||
699 | * |
||
700 | * @return \DateTime|null |
||
701 | */ |
||
702 | 7 | public function getFirstBuyDate() |
|
706 | |||
707 | /** |
||
708 | * Set lastBuyDate. |
||
709 | * |
||
710 | * @param \DateTime|null $lastBuyDate |
||
711 | * |
||
712 | * @return Customer |
||
713 | */ |
||
714 | 14 | public function setLastBuyDate($lastBuyDate = null) |
|
720 | |||
721 | /** |
||
722 | * Get lastBuyDate. |
||
723 | * |
||
724 | * @return \DateTime|null |
||
725 | */ |
||
726 | 4 | public function getLastBuyDate() |
|
730 | |||
731 | /** |
||
732 | * Set buyTimes. |
||
733 | * |
||
734 | * @param string|null $buyTimes |
||
735 | * |
||
736 | * @return Customer |
||
737 | */ |
||
738 | 373 | public function setBuyTimes($buyTimes = null) |
|
744 | |||
745 | /** |
||
746 | * Get buyTimes. |
||
747 | * |
||
748 | * @return string|null |
||
749 | */ |
||
750 | 7 | public function getBuyTimes() |
|
754 | |||
755 | /** |
||
756 | * Set buyTotal. |
||
757 | * |
||
758 | * @param string|null $buyTotal |
||
759 | * |
||
760 | * @return Customer |
||
761 | */ |
||
762 | 373 | public function setBuyTotal($buyTotal = null) |
|
768 | |||
769 | /** |
||
770 | * Get buyTotal. |
||
771 | * |
||
772 | * @return string|null |
||
773 | */ |
||
774 | 5 | public function getBuyTotal() |
|
778 | |||
779 | /** |
||
780 | * Set note. |
||
781 | * |
||
782 | * @param string|null $note |
||
783 | * |
||
784 | * @return Customer |
||
785 | */ |
||
786 | 22 | public function setNote($note = null) |
|
792 | |||
793 | /** |
||
794 | * Get note. |
||
795 | * |
||
796 | * @return string|null |
||
797 | */ |
||
798 | 30 | public function getNote() |
|
802 | |||
803 | /** |
||
804 | * Set resetKey. |
||
805 | * |
||
806 | * @param string|null $resetKey |
||
807 | * |
||
808 | * @return Customer |
||
809 | */ |
||
810 | 2 | public function setResetKey($resetKey = null) |
|
816 | |||
817 | /** |
||
818 | * Get resetKey. |
||
819 | * |
||
820 | * @return string|null |
||
821 | */ |
||
822 | public function getResetKey() |
||
826 | |||
827 | /** |
||
828 | * Set resetExpire. |
||
829 | * |
||
830 | * @param \DateTime|null $resetExpire |
||
831 | * |
||
832 | * @return Customer |
||
833 | */ |
||
834 | 2 | public function setResetExpire($resetExpire = null) |
|
840 | |||
841 | /** |
||
842 | * Get resetExpire. |
||
843 | * |
||
844 | * @return \DateTime|null |
||
845 | */ |
||
846 | public function getResetExpire() |
||
850 | |||
851 | /** |
||
852 | * Set createDate. |
||
853 | * |
||
854 | * @param \DateTime $createDate |
||
855 | * |
||
856 | * @return Customer |
||
857 | */ |
||
858 | 303 | public function setCreateDate($createDate) |
|
864 | |||
865 | /** |
||
866 | * Get createDate. |
||
867 | * |
||
868 | * @return \DateTime |
||
869 | */ |
||
870 | 1 | public function getCreateDate() |
|
874 | |||
875 | /** |
||
876 | * Set updateDate. |
||
877 | * |
||
878 | * @param \DateTime $updateDate |
||
879 | * |
||
880 | * @return Customer |
||
881 | */ |
||
882 | 303 | public function setUpdateDate($updateDate) |
|
888 | |||
889 | /** |
||
890 | * Get updateDate. |
||
891 | * |
||
892 | * @return \DateTime |
||
893 | */ |
||
894 | 1 | public function getUpdateDate() |
|
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) |
||
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) |
||
924 | |||
925 | /** |
||
926 | * Get customerFavoriteProducts. |
||
927 | * |
||
928 | * @return \Doctrine\Common\Collections\Collection |
||
929 | */ |
||
930 | public function getCustomerFavoriteProducts() |
||
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) |
|
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) |
||
960 | |||
961 | /** |
||
962 | * Get customerAddresses. |
||
963 | * |
||
964 | * @return \Doctrine\Common\Collections\Collection |
||
965 | */ |
||
966 | 20 | public function getCustomerAddresses() |
|
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) |
|
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) |
||
996 | |||
997 | /** |
||
998 | * Get orders. |
||
999 | * |
||
1000 | * @return \Doctrine\Common\Collections\Collection |
||
1001 | */ |
||
1002 | 3 | public function getOrders() |
|
1006 | |||
1007 | /** |
||
1008 | * Set status. |
||
1009 | * |
||
1010 | * @param \Eccube\Entity\Master\CustomerStatus|null $status |
||
1011 | * |
||
1012 | * @return Customer |
||
1013 | */ |
||
1014 | 329 | public function setStatus(\Eccube\Entity\Master\CustomerStatus $status = null) |
|
1020 | |||
1021 | /** |
||
1022 | * Get status. |
||
1023 | * |
||
1024 | * @return \Eccube\Entity\Master\CustomerStatus|null |
||
1025 | */ |
||
1026 | 38 | public function getStatus() |
|
1030 | |||
1031 | /** |
||
1032 | * Set sex. |
||
1033 | * |
||
1034 | * @param \Eccube\Entity\Master\Sex|null $sex |
||
1035 | * |
||
1036 | * @return Customer |
||
1037 | */ |
||
1038 | 341 | public function setSex(\Eccube\Entity\Master\Sex $sex = null) |
|
1044 | |||
1045 | /** |
||
1046 | * Get sex. |
||
1047 | * |
||
1048 | * @return \Eccube\Entity\Master\Sex|null |
||
1049 | */ |
||
1050 | 58 | public function getSex() |
|
1054 | |||
1055 | /** |
||
1056 | * Set job. |
||
1057 | * |
||
1058 | * @param \Eccube\Entity\Master\Job|null $job |
||
1059 | * |
||
1060 | * @return Customer |
||
1061 | */ |
||
1062 | 341 | public function setJob(\Eccube\Entity\Master\Job $job = null) |
|
1068 | |||
1069 | /** |
||
1070 | * Get job. |
||
1071 | * |
||
1072 | * @return \Eccube\Entity\Master\Job|null |
||
1073 | */ |
||
1074 | 58 | public function getJob() |
|
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) |
||
1092 | |||
1093 | /** |
||
1094 | * Get country. |
||
1095 | * |
||
1096 | * @return \Eccube\Entity\Master\Country|null |
||
1097 | */ |
||
1098 | 52 | public function getCountry() |
|
1102 | |||
1103 | /** |
||
1104 | * Set pref. |
||
1105 | * |
||
1106 | * @param \Eccube\Entity\Master\Pref|null $pref |
||
1107 | * |
||
1108 | * @return Customer |
||
1109 | */ |
||
1110 | 357 | public function setPref(\Eccube\Entity\Master\Pref $pref = null) |
|
1116 | |||
1117 | /** |
||
1118 | * Get pref. |
||
1119 | * |
||
1120 | * @return \Eccube\Entity\Master\Pref|null |
||
1121 | */ |
||
1122 | 125 | public function getPref() |
|
1126 | |||
1127 | /** |
||
1128 | * Set point |
||
1129 | * |
||
1130 | * @param string $point |
||
1131 | * |
||
1132 | * @return Customer |
||
1133 | */ |
||
1134 | 337 | public function setPoint($point) |
|
1140 | |||
1141 | /** |
||
1142 | * Get point |
||
1143 | * |
||
1144 | * @return string |
||
1145 | */ |
||
1146 | 103 | public function getPoint() |
|
1150 | } |
||
1151 |