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 |
||
| 31 | class Customer extends \Eccube\Entity\AbstractEntity implements UserInterface |
||
| 32 | { |
||
| 33 | /** |
||
| 34 | * @var int |
||
| 35 | * |
||
| 36 | * @ORM\Column(name="id", type="integer", options={"unsigned":true}) |
||
| 37 | * @ORM\Id |
||
| 38 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
| 39 | */ |
||
| 40 | private $id; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @var string |
||
| 44 | * |
||
| 45 | * @ORM\Column(name="name01", type="string", length=255) |
||
| 46 | */ |
||
| 47 | private $name01; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @var string |
||
| 51 | * |
||
| 52 | * @ORM\Column(name="name02", type="string", length=255) |
||
| 53 | */ |
||
| 54 | private $name02; |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @var string|null |
||
| 58 | * |
||
| 59 | * @ORM\Column(name="kana01", type="string", length=255, nullable=true) |
||
| 60 | */ |
||
| 61 | private $kana01; |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @var string|null |
||
| 65 | * |
||
| 66 | * @ORM\Column(name="kana02", type="string", length=255, nullable=true) |
||
| 67 | */ |
||
| 68 | private $kana02; |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @var string|null |
||
| 72 | * |
||
| 73 | * @ORM\Column(name="company_name", type="string", length=255, nullable=true) |
||
| 74 | */ |
||
| 75 | private $company_name; |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @var string|null |
||
| 79 | * |
||
| 80 | * @ORM\Column(name="postal_code", type="string", length=8, nullable=true) |
||
| 81 | */ |
||
| 82 | private $postal_code; |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @var string|null |
||
| 86 | * |
||
| 87 | * @ORM\Column(name="addr01", type="string", length=255, nullable=true) |
||
| 88 | */ |
||
| 89 | private $addr01; |
||
| 90 | |||
| 91 | /** |
||
| 92 | * @var string|null |
||
| 93 | * |
||
| 94 | * @ORM\Column(name="addr02", type="string", length=255, nullable=true) |
||
| 95 | */ |
||
| 96 | private $addr02; |
||
| 97 | |||
| 98 | /** |
||
| 99 | * @var string |
||
| 100 | * |
||
| 101 | * @ORM\Column(name="email", type="string", length=255) |
||
| 102 | */ |
||
| 103 | private $email; |
||
| 104 | |||
| 105 | /** |
||
| 106 | * @var string|null |
||
| 107 | * |
||
| 108 | * @ORM\Column(name="phone_number", type="string", length=14, nullable=true) |
||
| 109 | */ |
||
| 110 | private $phone_number; |
||
| 111 | |||
| 112 | /** |
||
| 113 | * @var \DateTime|null |
||
| 114 | * |
||
| 115 | * @ORM\Column(name="birth", type="datetimetz", nullable=true) |
||
| 116 | */ |
||
| 117 | private $birth; |
||
| 118 | |||
| 119 | /** |
||
| 120 | * @var string|null |
||
| 121 | * |
||
| 122 | * @ORM\Column(name="password", type="string", length=255) |
||
| 123 | */ |
||
| 124 | private $password; |
||
| 125 | |||
| 126 | /** |
||
| 127 | * @var string|null |
||
| 128 | * |
||
| 129 | * @ORM\Column(name="salt", type="string", length=255, nullable=true) |
||
| 130 | */ |
||
| 131 | private $salt; |
||
| 132 | |||
| 133 | /** |
||
| 134 | * @var string |
||
| 135 | * |
||
| 136 | * @ORM\Column(name="secret_key", type="string", length=255) |
||
| 137 | */ |
||
| 138 | private $secret_key; |
||
| 139 | |||
| 140 | /** |
||
| 141 | * @var \DateTime|null |
||
| 142 | * |
||
| 143 | * @ORM\Column(name="first_buy_date", type="datetimetz", nullable=true) |
||
| 144 | */ |
||
| 145 | private $first_buy_date; |
||
| 146 | |||
| 147 | /** |
||
| 148 | * @var \DateTime|null |
||
| 149 | * |
||
| 150 | * @ORM\Column(name="last_buy_date", type="datetimetz", nullable=true) |
||
| 151 | */ |
||
| 152 | private $last_buy_date; |
||
| 153 | |||
| 154 | /** |
||
| 155 | * @var string|null |
||
| 156 | * |
||
| 157 | * @ORM\Column(name="buy_times", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0}) |
||
| 158 | */ |
||
| 159 | private $buy_times = 0; |
||
| 160 | |||
| 161 | /** |
||
| 162 | * @var string|null |
||
| 163 | * |
||
| 164 | * @ORM\Column(name="buy_total", type="decimal", precision=12, scale=2, nullable=true, options={"unsigned":true,"default":0}) |
||
| 165 | */ |
||
| 166 | private $buy_total = 0; |
||
| 167 | |||
| 168 | /** |
||
| 169 | * @var string|null |
||
| 170 | * |
||
| 171 | * @ORM\Column(name="note", type="string", length=4000, nullable=true) |
||
| 172 | */ |
||
| 173 | private $note; |
||
| 174 | |||
| 175 | /** |
||
| 176 | * @var string|null |
||
| 177 | * |
||
| 178 | * @ORM\Column(name="reset_key", type="string", length=255, nullable=true) |
||
| 179 | */ |
||
| 180 | private $reset_key; |
||
| 181 | |||
| 182 | /** |
||
| 183 | * @var \DateTime|null |
||
| 184 | * |
||
| 185 | * @ORM\Column(name="reset_expire", type="datetimetz", nullable=true) |
||
| 186 | */ |
||
| 187 | private $reset_expire; |
||
| 188 | |||
| 189 | /** |
||
| 190 | * @var string |
||
| 191 | * |
||
| 192 | * @ORM\Column(name="point", type="decimal", precision=12, scale=0, options={"unsigned":false,"default":0}) |
||
| 193 | */ |
||
| 194 | private $point = '0'; |
||
| 195 | |||
| 196 | /** |
||
| 197 | * @var \DateTime |
||
| 198 | * |
||
| 199 | * @ORM\Column(name="create_date", type="datetimetz") |
||
| 200 | */ |
||
| 201 | private $create_date; |
||
| 202 | |||
| 203 | /** |
||
| 204 | * @var \DateTime |
||
| 205 | * |
||
| 206 | * @ORM\Column(name="update_date", type="datetimetz") |
||
| 207 | */ |
||
| 208 | private $update_date; |
||
| 209 | |||
| 210 | /** |
||
| 211 | * @var \Doctrine\Common\Collections\Collection |
||
| 212 | * |
||
| 213 | * @ORM\OneToMany(targetEntity="Eccube\Entity\CustomerFavoriteProduct", mappedBy="Customer", cascade={"remove"}) |
||
| 214 | */ |
||
| 215 | private $CustomerFavoriteProducts; |
||
| 216 | |||
| 217 | /** |
||
| 218 | * @var \Doctrine\Common\Collections\Collection |
||
| 219 | * |
||
| 220 | * @ORM\OneToMany(targetEntity="Eccube\Entity\CustomerAddress", mappedBy="Customer", cascade={"remove"}) |
||
| 221 | * @ORM\OrderBy({ |
||
| 222 | * "id"="ASC" |
||
| 223 | * }) |
||
| 224 | */ |
||
| 225 | private $CustomerAddresses; |
||
| 226 | |||
| 227 | /** |
||
| 228 | * @var \Doctrine\Common\Collections\Collection |
||
| 229 | * |
||
| 230 | * @ORM\OneToMany(targetEntity="Eccube\Entity\Order", mappedBy="Customer") |
||
| 231 | */ |
||
| 232 | private $Orders; |
||
| 233 | |||
| 234 | /** |
||
| 235 | * @var \Eccube\Entity\Master\CustomerStatus |
||
| 236 | * |
||
| 237 | * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\CustomerStatus") |
||
| 238 | * @ORM\JoinColumns({ |
||
| 239 | * @ORM\JoinColumn(name="customer_status_id", referencedColumnName="id") |
||
| 240 | * }) |
||
| 241 | */ |
||
| 242 | private $Status; |
||
| 243 | |||
| 244 | /** |
||
| 245 | * @var \Eccube\Entity\Master\Sex |
||
| 246 | * |
||
| 247 | * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Sex") |
||
| 248 | * @ORM\JoinColumns({ |
||
| 249 | * @ORM\JoinColumn(name="sex_id", referencedColumnName="id") |
||
| 250 | * }) |
||
| 251 | */ |
||
| 252 | private $Sex; |
||
| 253 | |||
| 254 | /** |
||
| 255 | * @var \Eccube\Entity\Master\Job |
||
| 256 | * |
||
| 257 | * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Job") |
||
| 258 | * @ORM\JoinColumns({ |
||
| 259 | * @ORM\JoinColumn(name="job_id", referencedColumnName="id") |
||
| 260 | * }) |
||
| 261 | */ |
||
| 262 | private $Job; |
||
| 263 | |||
| 264 | /** |
||
| 265 | * @var \Eccube\Entity\Master\Country |
||
| 266 | * |
||
| 267 | * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Country") |
||
| 268 | * @ORM\JoinColumns({ |
||
| 269 | * @ORM\JoinColumn(name="country_id", referencedColumnName="id") |
||
| 270 | * }) |
||
| 271 | */ |
||
| 272 | private $Country; |
||
| 273 | |||
| 274 | /** |
||
| 275 | * @var \Eccube\Entity\Master\Pref |
||
| 276 | * |
||
| 277 | * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Pref") |
||
| 278 | * @ORM\JoinColumns({ |
||
| 279 | * @ORM\JoinColumn(name="pref_id", referencedColumnName="id") |
||
| 280 | * }) |
||
| 281 | */ |
||
| 282 | private $Pref; |
||
| 283 | |||
| 284 | /** |
||
| 285 | * Constructor |
||
| 286 | */ |
||
| 287 | 414 | public function __construct() |
|
| 296 | |||
| 297 | /** |
||
| 298 | * @return string |
||
| 299 | */ |
||
| 300 | public function __toString() |
||
| 304 | |||
| 305 | /** |
||
| 306 | * {@inheritdoc} |
||
| 307 | */ |
||
| 308 | 2 | public function getRoles() |
|
| 312 | |||
| 313 | public static function getUsernameField(): string |
||
| 319 | |||
| 320 | /** |
||
| 321 | * {@inheritdoc} |
||
| 322 | */ |
||
| 323 | public function getUsername() |
||
| 327 | |||
| 328 | /** |
||
| 329 | 45 | * {@inheritdoc} |
|
| 330 | */ |
||
| 331 | 45 | public function eraseCredentials() |
|
| 334 | |||
| 335 | // TODO: できればFormTypeで行いたい |
||
| 336 | public static function loadValidatorMetadata(ClassMetadata $metadata) |
||
| 344 | |||
| 345 | 124 | /** |
|
| 346 | * Get id. |
||
| 347 | * |
||
| 348 | * @return int |
||
| 349 | */ |
||
| 350 | public function getId() |
||
| 354 | |||
| 355 | 354 | /** |
|
| 356 | * Set name01. |
||
| 357 | 354 | * |
|
| 358 | * @param string $name01 |
||
| 359 | 354 | * |
|
| 360 | * @return Customer |
||
| 361 | */ |
||
| 362 | public function setName01($name01) |
||
| 368 | |||
| 369 | 136 | /** |
|
| 370 | * Get name01. |
||
| 371 | * |
||
| 372 | * @return string |
||
| 373 | */ |
||
| 374 | public function getName01() |
||
| 378 | |||
| 379 | 354 | /** |
|
| 380 | * Set name02. |
||
| 381 | 354 | * |
|
| 382 | * @param string $name02 |
||
| 383 | 354 | * |
|
| 384 | * @return Customer |
||
| 385 | */ |
||
| 386 | public function setName02($name02) |
||
| 392 | |||
| 393 | 133 | /** |
|
| 394 | * Get name02. |
||
| 395 | * |
||
| 396 | * @return string |
||
| 397 | */ |
||
| 398 | public function getName02() |
||
| 402 | |||
| 403 | 354 | /** |
|
| 404 | * Set kana01. |
||
| 405 | 354 | * |
|
| 406 | * @param string|null $kana01 |
||
| 407 | 354 | * |
|
| 408 | * @return Customer |
||
| 409 | */ |
||
| 410 | public function setKana01($kana01 = null) |
||
| 416 | |||
| 417 | 110 | /** |
|
| 418 | * Get kana01. |
||
| 419 | * |
||
| 420 | * @return string|null |
||
| 421 | */ |
||
| 422 | public function getKana01() |
||
| 426 | |||
| 427 | 354 | /** |
|
| 428 | * Set kana02. |
||
| 429 | 354 | * |
|
| 430 | * @param string|null $kana02 |
||
| 431 | 354 | * |
|
| 432 | * @return Customer |
||
| 433 | */ |
||
| 434 | public function setKana02($kana02 = null) |
||
| 440 | |||
| 441 | 111 | /** |
|
| 442 | * Get kana02. |
||
| 443 | * |
||
| 444 | * @return string|null |
||
| 445 | */ |
||
| 446 | public function getKana02() |
||
| 450 | |||
| 451 | 341 | /** |
|
| 452 | * Set companyName. |
||
| 453 | 341 | * |
|
| 454 | * @param string|null $companyName |
||
| 455 | 341 | * |
|
| 456 | * @return Customer |
||
| 457 | */ |
||
| 458 | public function setCompanyName($companyName = null) |
||
| 464 | |||
| 465 | 106 | /** |
|
| 466 | * Get companyName. |
||
| 467 | * |
||
| 468 | * @return string|null |
||
| 469 | */ |
||
| 470 | public function getCompanyName() |
||
| 474 | |||
| 475 | 354 | /** |
|
| 476 | * Set postal_code. |
||
| 477 | 354 | * |
|
| 478 | * @param string|null $postal_code |
||
| 479 | 354 | * |
|
| 480 | * @return Customer |
||
| 481 | */ |
||
| 482 | public function setPostalCode($postal_code = null) |
||
| 488 | |||
| 489 | 107 | /** |
|
| 490 | * Get postal_code. |
||
| 491 | * |
||
| 492 | * @return string|null |
||
| 493 | */ |
||
| 494 | public function getPostalCode() |
||
| 498 | |||
| 499 | 354 | /** |
|
| 500 | * Set addr01. |
||
| 501 | 354 | * |
|
| 502 | * @param string|null $addr01 |
||
| 503 | 354 | * |
|
| 504 | * @return Customer |
||
| 505 | */ |
||
| 506 | public function setAddr01($addr01 = null) |
||
| 512 | |||
| 513 | 107 | /** |
|
| 514 | * Get addr01. |
||
| 515 | * |
||
| 516 | * @return string|null |
||
| 517 | */ |
||
| 518 | public function getAddr01() |
||
| 522 | |||
| 523 | 354 | /** |
|
| 524 | * Set addr02. |
||
| 525 | 354 | * |
|
| 526 | * @param string|null $addr02 |
||
| 527 | 354 | * |
|
| 528 | * @return Customer |
||
| 529 | */ |
||
| 530 | public function setAddr02($addr02 = null) |
||
| 536 | |||
| 537 | 107 | /** |
|
| 538 | * Get addr02. |
||
| 539 | * |
||
| 540 | * @return string|null |
||
| 541 | */ |
||
| 542 | public function getAddr02() |
||
| 546 | |||
| 547 | 354 | /** |
|
| 548 | * Set email. |
||
| 549 | 354 | * |
|
| 550 | * @param string $email |
||
| 551 | 354 | * |
|
| 552 | * @return Customer |
||
| 553 | */ |
||
| 554 | public function setEmail($email) |
||
| 560 | |||
| 561 | 75 | /** |
|
| 562 | * Get email. |
||
| 563 | * |
||
| 564 | * @return string |
||
| 565 | */ |
||
| 566 | public function getEmail() |
||
| 570 | |||
| 571 | 354 | /** |
|
| 572 | * Set phone_number. |
||
| 573 | 354 | * |
|
| 574 | * @param string|null $phone_number |
||
| 575 | 354 | * |
|
| 576 | * @return Customer |
||
| 577 | */ |
||
| 578 | public function setPhoneNumber($phone_number = null) |
||
| 584 | |||
| 585 | 115 | /** |
|
| 586 | * Get phone_number. |
||
| 587 | * |
||
| 588 | * @return string|null |
||
| 589 | */ |
||
| 590 | public function getPhoneNumber() |
||
| 594 | |||
| 595 | 340 | /** |
|
| 596 | * Set birth. |
||
| 597 | 340 | * |
|
| 598 | * @param \DateTime|null $birth |
||
| 599 | 340 | * |
|
| 600 | * @return Customer |
||
| 601 | */ |
||
| 602 | public function setBirth($birth = null) |
||
| 608 | |||
| 609 | 59 | /** |
|
| 610 | * Get birth. |
||
| 611 | * |
||
| 612 | * @return \DateTime|null |
||
| 613 | */ |
||
| 614 | public function getBirth() |
||
| 618 | |||
| 619 | 336 | /** |
|
| 620 | * Set password. |
||
| 621 | 336 | * |
|
| 622 | * @param string|null $password |
||
| 623 | 336 | * |
|
| 624 | * @return Customer |
||
| 625 | */ |
||
| 626 | public function setPassword($password = null) |
||
| 632 | |||
| 633 | 123 | /** |
|
| 634 | * Get password. |
||
| 635 | * |
||
| 636 | * @return string|null |
||
| 637 | */ |
||
| 638 | public function getPassword() |
||
| 642 | |||
| 643 | 300 | /** |
|
| 644 | * Set salt. |
||
| 645 | 300 | * |
|
| 646 | * @param string|null $salt |
||
| 647 | 300 | * |
|
| 648 | * @return Customer |
||
| 649 | */ |
||
| 650 | public function setSalt($salt = null) |
||
| 656 | |||
| 657 | 78 | /** |
|
| 658 | * Get salt. |
||
| 659 | * |
||
| 660 | * @return string|null |
||
| 661 | */ |
||
| 662 | public function getSalt() |
||
| 666 | |||
| 667 | 300 | /** |
|
| 668 | * Set secretKey. |
||
| 669 | 300 | * |
|
| 670 | * @param string $secretKey |
||
| 671 | 300 | * |
|
| 672 | * @return Customer |
||
| 673 | */ |
||
| 674 | public function setSecretKey($secretKey) |
||
| 680 | |||
| 681 | 5 | /** |
|
| 682 | * Get secretKey. |
||
| 683 | * |
||
| 684 | * @return string |
||
| 685 | */ |
||
| 686 | public function getSecretKey() |
||
| 690 | |||
| 691 | 12 | /** |
|
| 692 | * Set firstBuyDate. |
||
| 693 | 12 | * |
|
| 694 | * @param \DateTime|null $firstBuyDate |
||
| 695 | 12 | * |
|
| 696 | * @return Customer |
||
| 697 | */ |
||
| 698 | public function setFirstBuyDate($firstBuyDate = null) |
||
| 704 | |||
| 705 | 7 | /** |
|
| 706 | * Get firstBuyDate. |
||
| 707 | * |
||
| 708 | * @return \DateTime|null |
||
| 709 | */ |
||
| 710 | public function getFirstBuyDate() |
||
| 714 | |||
| 715 | 14 | /** |
|
| 716 | * Set lastBuyDate. |
||
| 717 | 14 | * |
|
| 718 | * @param \DateTime|null $lastBuyDate |
||
| 719 | 14 | * |
|
| 720 | * @return Customer |
||
| 721 | */ |
||
| 722 | public function setLastBuyDate($lastBuyDate = null) |
||
| 728 | |||
| 729 | 4 | /** |
|
| 730 | * Get lastBuyDate. |
||
| 731 | * |
||
| 732 | * @return \DateTime|null |
||
| 733 | */ |
||
| 734 | public function getLastBuyDate() |
||
| 738 | |||
| 739 | 414 | /** |
|
| 740 | * Set buyTimes. |
||
| 741 | 414 | * |
|
| 742 | * @param string|null $buyTimes |
||
| 743 | 414 | * |
|
| 744 | * @return Customer |
||
| 745 | */ |
||
| 746 | public function setBuyTimes($buyTimes = null) |
||
| 752 | |||
| 753 | 7 | /** |
|
| 754 | * Get buyTimes. |
||
| 755 | * |
||
| 756 | * @return string|null |
||
| 757 | */ |
||
| 758 | public function getBuyTimes() |
||
| 762 | |||
| 763 | 414 | /** |
|
| 764 | * Set buyTotal. |
||
| 765 | 414 | * |
|
| 766 | * @param string|null $buyTotal |
||
| 767 | 414 | * |
|
| 768 | * @return Customer |
||
| 769 | */ |
||
| 770 | public function setBuyTotal($buyTotal = null) |
||
| 776 | |||
| 777 | 5 | /** |
|
| 778 | * Get buyTotal. |
||
| 779 | * |
||
| 780 | * @return string|null |
||
| 781 | */ |
||
| 782 | public function getBuyTotal() |
||
| 786 | |||
| 787 | 22 | /** |
|
| 788 | * Set note. |
||
| 789 | 22 | * |
|
| 790 | * @param string|null $note |
||
| 791 | 22 | * |
|
| 792 | * @return Customer |
||
| 793 | */ |
||
| 794 | public function setNote($note = null) |
||
| 800 | |||
| 801 | 31 | /** |
|
| 802 | * Get note. |
||
| 803 | * |
||
| 804 | * @return string|null |
||
| 805 | */ |
||
| 806 | public function getNote() |
||
| 810 | |||
| 811 | 2 | /** |
|
| 812 | * Set resetKey. |
||
| 813 | 2 | * |
|
| 814 | * @param string|null $resetKey |
||
| 815 | 2 | * |
|
| 816 | * @return Customer |
||
| 817 | */ |
||
| 818 | public function setResetKey($resetKey = null) |
||
| 824 | |||
| 825 | /** |
||
| 826 | * Get resetKey. |
||
| 827 | * |
||
| 828 | * @return string|null |
||
| 829 | */ |
||
| 830 | public function getResetKey() |
||
| 834 | |||
| 835 | 2 | /** |
|
| 836 | * Set resetExpire. |
||
| 837 | 2 | * |
|
| 838 | * @param \DateTime|null $resetExpire |
||
| 839 | 2 | * |
|
| 840 | * @return Customer |
||
| 841 | */ |
||
| 842 | public function setResetExpire($resetExpire = null) |
||
| 848 | |||
| 849 | /** |
||
| 850 | * Get resetExpire. |
||
| 851 | * |
||
| 852 | * @return \DateTime|null |
||
| 853 | */ |
||
| 854 | public function getResetExpire() |
||
| 858 | |||
| 859 | 300 | /** |
|
| 860 | * Set createDate. |
||
| 861 | 300 | * |
|
| 862 | * @param \DateTime $createDate |
||
| 863 | 300 | * |
|
| 864 | * @return Customer |
||
| 865 | */ |
||
| 866 | public function setCreateDate($createDate) |
||
| 872 | |||
| 873 | 1 | /** |
|
| 874 | * Get createDate. |
||
| 875 | * |
||
| 876 | * @return \DateTime |
||
| 877 | */ |
||
| 878 | public function getCreateDate() |
||
| 882 | |||
| 883 | 300 | /** |
|
| 884 | * Set updateDate. |
||
| 885 | 300 | * |
|
| 886 | * @param \DateTime $updateDate |
||
| 887 | 300 | * |
|
| 888 | * @return Customer |
||
| 889 | */ |
||
| 890 | public function setUpdateDate($updateDate) |
||
| 896 | |||
| 897 | 1 | /** |
|
| 898 | * Get updateDate. |
||
| 899 | * |
||
| 900 | * @return \DateTime |
||
| 901 | */ |
||
| 902 | public function getUpdateDate() |
||
| 906 | |||
| 907 | /** |
||
| 908 | * Add customerFavoriteProduct. |
||
| 909 | * |
||
| 910 | * @param \Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProduct |
||
| 911 | * |
||
| 912 | * @return Customer |
||
| 913 | */ |
||
| 914 | public function addCustomerFavoriteProduct(\Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProduct) |
||
| 920 | |||
| 921 | /** |
||
| 922 | * Remove customerFavoriteProduct. |
||
| 923 | * |
||
| 924 | * @param \Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProduct |
||
| 925 | * |
||
| 926 | * @return boolean TRUE if this collection contained the specified element, FALSE otherwise. |
||
| 927 | */ |
||
| 928 | public function removeCustomerFavoriteProduct(\Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProduct) |
||
| 932 | |||
| 933 | /** |
||
| 934 | * Get customerFavoriteProducts. |
||
| 935 | * |
||
| 936 | * @return \Doctrine\Common\Collections\Collection |
||
| 937 | */ |
||
| 938 | public function getCustomerFavoriteProducts() |
||
| 942 | |||
| 943 | 7 | /** |
|
| 944 | * Add customerAddress. |
||
| 945 | 7 | * |
|
| 946 | * @param \Eccube\Entity\CustomerAddress $customerAddress |
||
| 947 | 7 | * |
|
| 948 | * @return Customer |
||
| 949 | */ |
||
| 950 | public function addCustomerAddress(\Eccube\Entity\CustomerAddress $customerAddress) |
||
| 956 | |||
| 957 | /** |
||
| 958 | * Remove customerAddress. |
||
| 959 | * |
||
| 960 | * @param \Eccube\Entity\CustomerAddress $customerAddress |
||
| 961 | * |
||
| 962 | * @return boolean TRUE if this collection contained the specified element, FALSE otherwise. |
||
| 963 | */ |
||
| 964 | public function removeCustomerAddress(\Eccube\Entity\CustomerAddress $customerAddress) |
||
| 968 | |||
| 969 | 21 | /** |
|
| 970 | * Get customerAddresses. |
||
| 971 | * |
||
| 972 | * @return \Doctrine\Common\Collections\Collection |
||
| 973 | */ |
||
| 974 | public function getCustomerAddresses() |
||
| 978 | |||
| 979 | 2 | /** |
|
| 980 | * Add order. |
||
| 981 | 2 | * |
|
| 982 | * @param \Eccube\Entity\Order $order |
||
| 983 | 2 | * |
|
| 984 | * @return Customer |
||
| 985 | */ |
||
| 986 | public function addOrder(\Eccube\Entity\Order $order) |
||
| 992 | |||
| 993 | /** |
||
| 994 | * Remove order. |
||
| 995 | * |
||
| 996 | * @param \Eccube\Entity\Order $order |
||
| 997 | * |
||
| 998 | * @return boolean TRUE if this collection contained the specified element, FALSE otherwise. |
||
| 999 | */ |
||
| 1000 | public function removeOrder(\Eccube\Entity\Order $order) |
||
| 1004 | |||
| 1005 | 4 | /** |
|
| 1006 | * Get orders. |
||
| 1007 | * |
||
| 1008 | * @return \Doctrine\Common\Collections\Collection |
||
| 1009 | */ |
||
| 1010 | public function getOrders() |
||
| 1014 | |||
| 1015 | 326 | /** |
|
| 1016 | * Set status. |
||
| 1017 | 326 | * |
|
| 1018 | * @param \Eccube\Entity\Master\CustomerStatus|null $status |
||
| 1019 | 326 | * |
|
| 1020 | * @return Customer |
||
| 1021 | */ |
||
| 1022 | public function setStatus(\Eccube\Entity\Master\CustomerStatus $status = null) |
||
| 1028 | |||
| 1029 | 39 | /** |
|
| 1030 | * Get status. |
||
| 1031 | * |
||
| 1032 | * @return \Eccube\Entity\Master\CustomerStatus|null |
||
| 1033 | */ |
||
| 1034 | public function getStatus() |
||
| 1038 | |||
| 1039 | 338 | /** |
|
| 1040 | * Set sex. |
||
| 1041 | 338 | * |
|
| 1042 | * @param \Eccube\Entity\Master\Sex|null $sex |
||
| 1043 | 338 | * |
|
| 1044 | * @return Customer |
||
| 1045 | */ |
||
| 1046 | public function setSex(\Eccube\Entity\Master\Sex $sex = null) |
||
| 1052 | |||
| 1053 | 59 | /** |
|
| 1054 | * Get sex. |
||
| 1055 | * |
||
| 1056 | * @return \Eccube\Entity\Master\Sex|null |
||
| 1057 | */ |
||
| 1058 | public function getSex() |
||
| 1062 | |||
| 1063 | 338 | /** |
|
| 1064 | * Set job. |
||
| 1065 | 338 | * |
|
| 1066 | * @param \Eccube\Entity\Master\Job|null $job |
||
| 1067 | 338 | * |
|
| 1068 | * @return Customer |
||
| 1069 | */ |
||
| 1070 | public function setJob(\Eccube\Entity\Master\Job $job = null) |
||
| 1076 | |||
| 1077 | 59 | /** |
|
| 1078 | * Get job. |
||
| 1079 | * |
||
| 1080 | * @return \Eccube\Entity\Master\Job|null |
||
| 1081 | */ |
||
| 1082 | public function getJob() |
||
| 1086 | |||
| 1087 | /** |
||
| 1088 | * Set country. |
||
| 1089 | * |
||
| 1090 | * @param \Eccube\Entity\Master\Country|null $country |
||
| 1091 | * |
||
| 1092 | * @return Customer |
||
| 1093 | */ |
||
| 1094 | public function setCountry(\Eccube\Entity\Master\Country $country = null) |
||
| 1100 | |||
| 1101 | 52 | /** |
|
| 1102 | * Get country. |
||
| 1103 | * |
||
| 1104 | * @return \Eccube\Entity\Master\Country|null |
||
| 1105 | */ |
||
| 1106 | public function getCountry() |
||
| 1110 | |||
| 1111 | 354 | /** |
|
| 1112 | * Set pref. |
||
| 1113 | 354 | * |
|
| 1114 | * @param \Eccube\Entity\Master\Pref|null $pref |
||
| 1115 | 354 | * |
|
| 1116 | * @return Customer |
||
| 1117 | */ |
||
| 1118 | public function setPref(\Eccube\Entity\Master\Pref $pref = null) |
||
| 1124 | |||
| 1125 | 126 | /** |
|
| 1126 | * Get pref. |
||
| 1127 | * |
||
| 1128 | * @return \Eccube\Entity\Master\Pref|null |
||
| 1129 | */ |
||
| 1130 | public function getPref() |
||
| 1134 | |||
| 1135 | 375 | /** |
|
| 1136 | * Set point |
||
| 1137 | 375 | * |
|
| 1138 | * @param string $point |
||
| 1139 | 375 | * |
|
| 1140 | * @return Customer |
||
| 1141 | */ |
||
| 1142 | public function setPoint($point) |
||
| 1148 | |||
| 1149 | 133 | /** |
|
| 1150 | * Get point |
||
| 1151 | * |
||
| 1152 | * @return string |
||
| 1153 | */ |
||
| 1154 | public function getPoint() |
||
| 1158 | } |
||
| 1159 | } |
||
| 1160 |