Complex classes like BaseInfo 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 BaseInfo, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 29 | class BaseInfo extends \Eccube\Entity\AbstractEntity |
||
| 30 | { |
||
| 31 | /** |
||
| 32 | * @var int |
||
| 33 | * |
||
| 34 | * @ORM\Column(name="id", type="integer", options={"unsigned":true}) |
||
| 35 | * @ORM\Id |
||
| 36 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
| 37 | */ |
||
| 38 | private $id; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @var string|null |
||
| 42 | * |
||
| 43 | * @ORM\Column(name="company_name", type="string", length=255, nullable=true) |
||
| 44 | */ |
||
| 45 | private $company_name; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @var string|null |
||
| 49 | * |
||
| 50 | * @ORM\Column(name="company_kana", type="string", length=255, nullable=true) |
||
| 51 | */ |
||
| 52 | private $company_kana; |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @var string|null |
||
| 56 | * |
||
| 57 | * @ORM\Column(name="postal_code", type="string", length=8, nullable=true) |
||
| 58 | */ |
||
| 59 | private $postal_code; |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @var string|null |
||
| 63 | * |
||
| 64 | * @ORM\Column(name="addr01", type="string", length=255, nullable=true) |
||
| 65 | */ |
||
| 66 | private $addr01; |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @var string|null |
||
| 70 | * |
||
| 71 | * @ORM\Column(name="addr02", type="string", length=255, nullable=true) |
||
| 72 | */ |
||
| 73 | private $addr02; |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @var string|null |
||
| 77 | * |
||
| 78 | * @ORM\Column(name="phone_number", type="string", length=14, nullable=true) |
||
| 79 | */ |
||
| 80 | private $phone_number; |
||
| 81 | |||
| 82 | /** |
||
| 83 | * @var string|null |
||
| 84 | * |
||
| 85 | * @ORM\Column(name="business_hour", type="string", length=255, nullable=true) |
||
| 86 | */ |
||
| 87 | private $business_hour; |
||
| 88 | |||
| 89 | /** |
||
| 90 | * @var string|null |
||
| 91 | * |
||
| 92 | * @ORM\Column(name="email01", type="string", length=255, nullable=true) |
||
| 93 | */ |
||
| 94 | private $email01; |
||
| 95 | |||
| 96 | /** |
||
| 97 | * @var string|null |
||
| 98 | * |
||
| 99 | * @ORM\Column(name="email02", type="string", length=255, nullable=true) |
||
| 100 | */ |
||
| 101 | private $email02; |
||
| 102 | |||
| 103 | /** |
||
| 104 | * @var string|null |
||
| 105 | * |
||
| 106 | * @ORM\Column(name="email03", type="string", length=255, nullable=true) |
||
| 107 | */ |
||
| 108 | private $email03; |
||
| 109 | |||
| 110 | /** |
||
| 111 | * @var string|null |
||
| 112 | * |
||
| 113 | * @ORM\Column(name="email04", type="string", length=255, nullable=true) |
||
| 114 | */ |
||
| 115 | private $email04; |
||
| 116 | |||
| 117 | /** |
||
| 118 | * @var string|null |
||
| 119 | * |
||
| 120 | * @ORM\Column(name="shop_name", type="string", length=255, nullable=true) |
||
| 121 | */ |
||
| 122 | private $shop_name; |
||
| 123 | |||
| 124 | /** |
||
| 125 | * @var string|null |
||
| 126 | * |
||
| 127 | * @ORM\Column(name="shop_kana", type="string", length=255, nullable=true) |
||
| 128 | */ |
||
| 129 | private $shop_kana; |
||
| 130 | |||
| 131 | /** |
||
| 132 | * @var string|null |
||
| 133 | * |
||
| 134 | * @ORM\Column(name="shop_name_eng", type="string", length=255, nullable=true) |
||
| 135 | */ |
||
| 136 | private $shop_name_eng; |
||
| 137 | |||
| 138 | /** |
||
| 139 | * @var \DateTime |
||
| 140 | * |
||
| 141 | * @ORM\Column(name="update_date", type="datetimetz") |
||
| 142 | */ |
||
| 143 | private $update_date; |
||
| 144 | |||
| 145 | /** |
||
| 146 | * @var string|null |
||
| 147 | * |
||
| 148 | * @ORM\Column(name="good_traded", type="string", length=4000, nullable=true) |
||
| 149 | */ |
||
| 150 | private $good_traded; |
||
| 151 | |||
| 152 | /** |
||
| 153 | * @var string|null |
||
| 154 | * |
||
| 155 | * @ORM\Column(name="message", type="string", length=4000, nullable=true) |
||
| 156 | */ |
||
| 157 | private $message; |
||
| 158 | |||
| 159 | /** |
||
| 160 | * @var string|null |
||
| 161 | * |
||
| 162 | * @ORM\Column(name="delivery_free_amount", type="decimal", precision=12, scale=2, nullable=true) |
||
| 163 | */ |
||
| 164 | private $delivery_free_amount; |
||
| 165 | |||
| 166 | /** |
||
| 167 | * @var int|null |
||
| 168 | * |
||
| 169 | * @ORM\Column(name="delivery_free_quantity", type="integer", nullable=true, options={"unsigned":true}) |
||
| 170 | */ |
||
| 171 | private $delivery_free_quantity; |
||
| 172 | |||
| 173 | /** |
||
| 174 | * @var boolean |
||
| 175 | * |
||
| 176 | * @ORM\Column(name="option_mypage_order_status_display", type="boolean", options={"default":true}) |
||
| 177 | */ |
||
| 178 | private $option_mypage_order_status_display = true; |
||
| 179 | |||
| 180 | /** |
||
| 181 | * @var boolean |
||
| 182 | * |
||
| 183 | * @ORM\Column(name="option_nostock_hidden", type="boolean", options={"default":false}) |
||
| 184 | */ |
||
| 185 | private $option_nostock_hidden = false; |
||
| 186 | |||
| 187 | /** |
||
| 188 | * @var boolean |
||
| 189 | * |
||
| 190 | * @ORM\Column(name="option_favorite_product", type="boolean", options={"default":true}) |
||
| 191 | */ |
||
| 192 | private $option_favorite_product = true; |
||
| 193 | |||
| 194 | /** |
||
| 195 | * @var boolean |
||
| 196 | * |
||
| 197 | * @ORM\Column(name="option_product_delivery_fee", type="boolean", options={"default":false}) |
||
| 198 | */ |
||
| 199 | private $option_product_delivery_fee = false; |
||
| 200 | |||
| 201 | /** |
||
| 202 | * @var boolean |
||
| 203 | * |
||
| 204 | * @ORM\Column(name="option_product_tax_rule", type="boolean", options={"default":false}) |
||
| 205 | */ |
||
| 206 | private $option_product_tax_rule = false; |
||
| 207 | |||
| 208 | /** |
||
| 209 | * @var boolean |
||
| 210 | * |
||
| 211 | * @ORM\Column(name="option_customer_activate", type="boolean", options={"default":true}) |
||
| 212 | */ |
||
| 213 | private $option_customer_activate = true; |
||
| 214 | |||
| 215 | /** |
||
| 216 | * @var boolean |
||
| 217 | * |
||
| 218 | * @ORM\Column(name="option_remember_me", type="boolean", options={"default":true}) |
||
| 219 | */ |
||
| 220 | private $option_remember_me = true; |
||
| 221 | |||
| 222 | /** |
||
| 223 | * @var string|null |
||
| 224 | * |
||
| 225 | * @ORM\Column(name="authentication_key", type="string", length=255, nullable=true) |
||
| 226 | */ |
||
| 227 | private $authentication_key; |
||
| 228 | |||
| 229 | /** |
||
| 230 | * @var boolean |
||
| 231 | * |
||
| 232 | * @ORM\Column(name="option_point", type="boolean", options={"default":true}) |
||
| 233 | */ |
||
| 234 | private $option_point = true; |
||
| 235 | |||
| 236 | /** |
||
| 237 | * @var string |
||
| 238 | * |
||
| 239 | * @ORM\Column(name="basic_point_rate", type="decimal", precision=10, scale=0, options={"unsigned":true, "default":1}, nullable=true) |
||
| 240 | */ |
||
| 241 | private $basic_point_rate = '1'; |
||
| 242 | |||
| 243 | /** |
||
| 244 | * @var string |
||
| 245 | * |
||
| 246 | * @ORM\Column(name="point_conversion_rate", type="decimal", precision=10, scale=0, options={"unsigned":true, "default":1}, nullable=true) |
||
| 247 | */ |
||
| 248 | private $point_conversion_rate = '1'; |
||
| 249 | |||
| 250 | /** |
||
| 251 | * @var \Eccube\Entity\Master\Country |
||
| 252 | * |
||
| 253 | * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Country") |
||
| 254 | * @ORM\JoinColumns({ |
||
| 255 | * @ORM\JoinColumn(name="country_id", referencedColumnName="id") |
||
| 256 | * }) |
||
| 257 | * @ORM\Cache(usage="NONSTRICT_READ_WRITE") |
||
| 258 | */ |
||
| 259 | private $Country; |
||
| 260 | |||
| 261 | /** |
||
| 262 | * @var \Eccube\Entity\Master\Pref |
||
| 263 | * |
||
| 264 | * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Pref") |
||
| 265 | * @ORM\JoinColumns({ |
||
| 266 | * @ORM\JoinColumn(name="pref_id", referencedColumnName="id") |
||
| 267 | * }) |
||
| 268 | * @ORM\Cache(usage="NONSTRICT_READ_WRITE") |
||
| 269 | */ |
||
| 270 | private $Pref; |
||
| 271 | |||
| 272 | /** |
||
| 273 | * Get id. |
||
| 274 | * |
||
| 275 | * @return int |
||
| 276 | */ |
||
| 277 | public function getId() |
||
| 281 | |||
| 282 | /** |
||
| 283 | * Set companyName. |
||
| 284 | * |
||
| 285 | * @param string|null $companyName |
||
| 286 | * |
||
| 287 | * @return BaseInfo |
||
| 288 | */ |
||
| 289 | public function setCompanyName($companyName = null) |
||
| 295 | |||
| 296 | /** |
||
| 297 | * Get companyName. |
||
| 298 | * |
||
| 299 | * @return string|null |
||
| 300 | */ |
||
| 301 | public function getCompanyName() |
||
| 305 | |||
| 306 | /** |
||
| 307 | * Set companyKana. |
||
| 308 | * |
||
| 309 | * @param string|null $companyKana |
||
| 310 | * |
||
| 311 | * @return BaseInfo |
||
| 312 | */ |
||
| 313 | public function setCompanyKana($companyKana = null) |
||
| 319 | |||
| 320 | /** |
||
| 321 | * Get companyKana. |
||
| 322 | * |
||
| 323 | * @return string|null |
||
| 324 | */ |
||
| 325 | public function getCompanyKana() |
||
| 329 | |||
| 330 | /** |
||
| 331 | * Set postal_code. |
||
| 332 | * |
||
| 333 | * @param string|null $postal_code |
||
| 334 | * |
||
| 335 | * @return BaseInfo |
||
| 336 | */ |
||
| 337 | public function setPostalCode($postal_code = null) |
||
| 343 | |||
| 344 | /** |
||
| 345 | * Get postal_code. |
||
| 346 | * |
||
| 347 | * @return string|null |
||
| 348 | */ |
||
| 349 | public function getPostalCode() |
||
| 353 | |||
| 354 | /** |
||
| 355 | * Set addr01. |
||
| 356 | * |
||
| 357 | * @param string|null $addr01 |
||
| 358 | * |
||
| 359 | * @return BaseInfo |
||
| 360 | */ |
||
| 361 | public function setAddr01($addr01 = null) |
||
| 367 | |||
| 368 | /** |
||
| 369 | * Get addr01. |
||
| 370 | * |
||
| 371 | * @return string|null |
||
| 372 | */ |
||
| 373 | public function getAddr01() |
||
| 377 | |||
| 378 | /** |
||
| 379 | * Set addr02. |
||
| 380 | * |
||
| 381 | * @param string|null $addr02 |
||
| 382 | * |
||
| 383 | * @return BaseInfo |
||
| 384 | */ |
||
| 385 | public function setAddr02($addr02 = null) |
||
| 391 | |||
| 392 | /** |
||
| 393 | * Get addr02. |
||
| 394 | * |
||
| 395 | * @return string|null |
||
| 396 | */ |
||
| 397 | public function getAddr02() |
||
| 401 | |||
| 402 | /** |
||
| 403 | * Set phone_number. |
||
| 404 | * |
||
| 405 | * @param string|null $phone_number |
||
| 406 | * |
||
| 407 | * @return BaseInfo |
||
| 408 | */ |
||
| 409 | public function setPhoneNumber($phone_number = null) |
||
| 415 | |||
| 416 | /** |
||
| 417 | * Get phone_number. |
||
| 418 | * |
||
| 419 | * @return string|null |
||
| 420 | */ |
||
| 421 | public function getPhoneNumber() |
||
| 425 | |||
| 426 | /** |
||
| 427 | * Set businessHour. |
||
| 428 | * |
||
| 429 | * @param string|null $businessHour |
||
| 430 | * |
||
| 431 | * @return BaseInfo |
||
| 432 | */ |
||
| 433 | public function setBusinessHour($businessHour = null) |
||
| 439 | |||
| 440 | /** |
||
| 441 | * Get businessHour. |
||
| 442 | * |
||
| 443 | * @return string|null |
||
| 444 | */ |
||
| 445 | public function getBusinessHour() |
||
| 449 | |||
| 450 | /** |
||
| 451 | * Set email01. |
||
| 452 | * |
||
| 453 | * @param string|null $email01 |
||
| 454 | * |
||
| 455 | * @return BaseInfo |
||
| 456 | */ |
||
| 457 | public function setEmail01($email01 = null) |
||
| 463 | |||
| 464 | /** |
||
| 465 | * Get email01. |
||
| 466 | * |
||
| 467 | * @return string|null |
||
| 468 | */ |
||
| 469 | public function getEmail01() |
||
| 473 | |||
| 474 | /** |
||
| 475 | * Set email02. |
||
| 476 | * |
||
| 477 | * @param string|null $email02 |
||
| 478 | * |
||
| 479 | * @return BaseInfo |
||
| 480 | */ |
||
| 481 | public function setEmail02($email02 = null) |
||
| 487 | |||
| 488 | /** |
||
| 489 | * Get email02. |
||
| 490 | * |
||
| 491 | * @return string|null |
||
| 492 | */ |
||
| 493 | public function getEmail02() |
||
| 497 | |||
| 498 | /** |
||
| 499 | * Set email03. |
||
| 500 | * |
||
| 501 | * @param string|null $email03 |
||
| 502 | * |
||
| 503 | * @return BaseInfo |
||
| 504 | */ |
||
| 505 | public function setEmail03($email03 = null) |
||
| 511 | |||
| 512 | /** |
||
| 513 | * Get email03. |
||
| 514 | * |
||
| 515 | * @return string|null |
||
| 516 | */ |
||
| 517 | public function getEmail03() |
||
| 521 | |||
| 522 | /** |
||
| 523 | * Set email04. |
||
| 524 | * |
||
| 525 | * @param string|null $email04 |
||
| 526 | * |
||
| 527 | * @return BaseInfo |
||
| 528 | */ |
||
| 529 | public function setEmail04($email04 = null) |
||
| 535 | |||
| 536 | /** |
||
| 537 | * Get email04. |
||
| 538 | * |
||
| 539 | * @return string|null |
||
| 540 | */ |
||
| 541 | public function getEmail04() |
||
| 545 | |||
| 546 | /** |
||
| 547 | * Set shopName. |
||
| 548 | * |
||
| 549 | * @param string|null $shopName |
||
| 550 | * |
||
| 551 | * @return BaseInfo |
||
| 552 | */ |
||
| 553 | public function setShopName($shopName = null) |
||
| 559 | |||
| 560 | /** |
||
| 561 | * Get shopName. |
||
| 562 | * |
||
| 563 | * @return string|null |
||
| 564 | */ |
||
| 565 | public function getShopName() |
||
| 569 | |||
| 570 | /** |
||
| 571 | * Set shopKana. |
||
| 572 | * |
||
| 573 | * @param string|null $shopKana |
||
| 574 | * |
||
| 575 | * @return BaseInfo |
||
| 576 | */ |
||
| 577 | public function setShopKana($shopKana = null) |
||
| 583 | |||
| 584 | /** |
||
| 585 | * Get shopKana. |
||
| 586 | * |
||
| 587 | * @return string|null |
||
| 588 | */ |
||
| 589 | public function getShopKana() |
||
| 593 | |||
| 594 | /** |
||
| 595 | * Set shopNameEng. |
||
| 596 | * |
||
| 597 | * @param string|null $shopNameEng |
||
| 598 | * |
||
| 599 | * @return BaseInfo |
||
| 600 | */ |
||
| 601 | public function setShopNameEng($shopNameEng = null) |
||
| 607 | |||
| 608 | /** |
||
| 609 | * Get shopNameEng. |
||
| 610 | * |
||
| 611 | * @return string|null |
||
| 612 | */ |
||
| 613 | public function getShopNameEng() |
||
| 617 | |||
| 618 | /** |
||
| 619 | * Set updateDate. |
||
| 620 | * |
||
| 621 | * @param \DateTime $updateDate |
||
| 622 | * |
||
| 623 | * @return BaseInfo |
||
| 624 | */ |
||
| 625 | public function setUpdateDate($updateDate) |
||
| 631 | |||
| 632 | /** |
||
| 633 | * Get updateDate. |
||
| 634 | * |
||
| 635 | * @return \DateTime |
||
| 636 | */ |
||
| 637 | public function getUpdateDate() |
||
| 641 | |||
| 642 | /** |
||
| 643 | * Set goodTraded. |
||
| 644 | * |
||
| 645 | * @param string|null $goodTraded |
||
| 646 | * |
||
| 647 | * @return BaseInfo |
||
| 648 | */ |
||
| 649 | public function setGoodTraded($goodTraded = null) |
||
| 655 | |||
| 656 | /** |
||
| 657 | * Get goodTraded. |
||
| 658 | * |
||
| 659 | * @return string|null |
||
| 660 | */ |
||
| 661 | public function getGoodTraded() |
||
| 665 | |||
| 666 | /** |
||
| 667 | * Set message. |
||
| 668 | * |
||
| 669 | * @param string|null $message |
||
| 670 | * |
||
| 671 | * @return BaseInfo |
||
| 672 | */ |
||
| 673 | public function setMessage($message = null) |
||
| 679 | |||
| 680 | /** |
||
| 681 | * Get message. |
||
| 682 | * |
||
| 683 | * @return string|null |
||
| 684 | */ |
||
| 685 | public function getMessage() |
||
| 689 | |||
| 690 | /** |
||
| 691 | * Set deliveryFreeAmount. |
||
| 692 | * |
||
| 693 | * @param string|null $deliveryFreeAmount |
||
| 694 | * |
||
| 695 | * @return BaseInfo |
||
| 696 | */ |
||
| 697 | public function setDeliveryFreeAmount($deliveryFreeAmount = null) |
||
| 703 | |||
| 704 | /** |
||
| 705 | * Get deliveryFreeAmount. |
||
| 706 | * |
||
| 707 | * @return string|null |
||
| 708 | */ |
||
| 709 | public function getDeliveryFreeAmount() |
||
| 713 | |||
| 714 | /** |
||
| 715 | * Set deliveryFreeQuantity. |
||
| 716 | * |
||
| 717 | * @param int|null $deliveryFreeQuantity |
||
| 718 | * |
||
| 719 | * @return BaseInfo |
||
| 720 | */ |
||
| 721 | public function setDeliveryFreeQuantity($deliveryFreeQuantity = null) |
||
| 727 | |||
| 728 | /** |
||
| 729 | * Get deliveryFreeQuantity. |
||
| 730 | * |
||
| 731 | * @return int|null |
||
| 732 | */ |
||
| 733 | public function getDeliveryFreeQuantity() |
||
| 737 | |||
| 738 | /** |
||
| 739 | * Set optionMypageOrderStatusDisplay. |
||
| 740 | * |
||
| 741 | * @param boolean $optionMypageOrderStatusDisplay |
||
| 742 | * |
||
| 743 | * @return BaseInfo |
||
| 744 | */ |
||
| 745 | public function setOptionMypageOrderStatusDisplay($optionMypageOrderStatusDisplay) |
||
| 751 | |||
| 752 | /** |
||
| 753 | * Get optionMypageOrderStatusDisplay. |
||
| 754 | * |
||
| 755 | * @return boolean |
||
| 756 | */ |
||
| 757 | public function isOptionMypageOrderStatusDisplay() |
||
| 761 | |||
| 762 | /** |
||
| 763 | * Set optionNostockHidden. |
||
| 764 | * |
||
| 765 | * @param integer $optionNostockHidden |
||
| 766 | * |
||
| 767 | * @return BaseInfo |
||
| 768 | */ |
||
| 769 | public function setOptionNostockHidden($optionNostockHidden) |
||
| 775 | |||
| 776 | /** |
||
| 777 | * Get optionNostockHidden. |
||
| 778 | * |
||
| 779 | * @return boolean |
||
| 780 | */ |
||
| 781 | public function isOptionNostockHidden() |
||
| 785 | |||
| 786 | /** |
||
| 787 | * Set optionFavoriteProduct. |
||
| 788 | * |
||
| 789 | * @param boolean $optionFavoriteProduct |
||
| 790 | * |
||
| 791 | * @return BaseInfo |
||
| 792 | */ |
||
| 793 | public function setOptionFavoriteProduct($optionFavoriteProduct) |
||
| 799 | |||
| 800 | /** |
||
| 801 | * Get optionFavoriteProduct. |
||
| 802 | * |
||
| 803 | * @return boolean |
||
| 804 | */ |
||
| 805 | public function isOptionFavoriteProduct() |
||
| 809 | |||
| 810 | /** |
||
| 811 | * Set optionProductDeliveryFee. |
||
| 812 | * |
||
| 813 | * @param boolean $optionProductDeliveryFee |
||
| 814 | * |
||
| 815 | * @return BaseInfo |
||
| 816 | */ |
||
| 817 | public function setOptionProductDeliveryFee($optionProductDeliveryFee) |
||
| 823 | |||
| 824 | /** |
||
| 825 | * Get optionProductDeliveryFee. |
||
| 826 | * |
||
| 827 | * @return boolean |
||
| 828 | */ |
||
| 829 | public function isOptionProductDeliveryFee() |
||
| 833 | |||
| 834 | /** |
||
| 835 | * Set optionProductTaxRule. |
||
| 836 | * |
||
| 837 | * @param boolean $optionProductTaxRule |
||
| 838 | * |
||
| 839 | * @return BaseInfo |
||
| 840 | */ |
||
| 841 | public function setOptionProductTaxRule($optionProductTaxRule) |
||
| 847 | |||
| 848 | /** |
||
| 849 | * Get optionProductTaxRule. |
||
| 850 | * |
||
| 851 | * @return boolean |
||
| 852 | */ |
||
| 853 | public function isOptionProductTaxRule() |
||
| 857 | |||
| 858 | /** |
||
| 859 | * Set optionCustomerActivate. |
||
| 860 | * |
||
| 861 | * @param boolean $optionCustomerActivate |
||
| 862 | * |
||
| 863 | * @return BaseInfo |
||
| 864 | */ |
||
| 865 | public function setOptionCustomerActivate($optionCustomerActivate) |
||
| 871 | |||
| 872 | /** |
||
| 873 | * Get optionCustomerActivate. |
||
| 874 | * |
||
| 875 | * @return boolean |
||
| 876 | */ |
||
| 877 | public function isOptionCustomerActivate() |
||
| 881 | |||
| 882 | /** |
||
| 883 | * Set optionRememberMe. |
||
| 884 | * |
||
| 885 | * @param boolean $optionRememberMe |
||
| 886 | * |
||
| 887 | * @return BaseInfo |
||
| 888 | */ |
||
| 889 | public function setOptionRememberMe($optionRememberMe) |
||
| 895 | |||
| 896 | /** |
||
| 897 | * Get optionRememberMe. |
||
| 898 | * |
||
| 899 | * @return boolean |
||
| 900 | */ |
||
| 901 | public function isOptionRememberMe() |
||
| 905 | |||
| 906 | /** |
||
| 907 | * Set authenticationKey. |
||
| 908 | * |
||
| 909 | * @param string|null $authenticationKey |
||
| 910 | * |
||
| 911 | * @return BaseInfo |
||
| 912 | */ |
||
| 913 | public function setAuthenticationKey($authenticationKey = null) |
||
| 919 | |||
| 920 | /** |
||
| 921 | * Get authenticationKey. |
||
| 922 | * |
||
| 923 | * @return string|null |
||
| 924 | */ |
||
| 925 | public function getAuthenticationKey() |
||
| 929 | |||
| 930 | /** |
||
| 931 | * Set country. |
||
| 932 | * |
||
| 933 | * @param \Eccube\Entity\Master\Country|null $country |
||
| 934 | * |
||
| 935 | * @return BaseInfo |
||
| 936 | */ |
||
| 937 | public function setCountry(\Eccube\Entity\Master\Country $country = null) |
||
| 943 | |||
| 944 | /** |
||
| 945 | * Get country. |
||
| 946 | * |
||
| 947 | * @return \Eccube\Entity\Master\Country|null |
||
| 948 | */ |
||
| 949 | public function getCountry() |
||
| 953 | |||
| 954 | /** |
||
| 955 | * Set pref. |
||
| 956 | * |
||
| 957 | * @param \Eccube\Entity\Master\Pref|null $pref |
||
| 958 | * |
||
| 959 | * @return BaseInfo |
||
| 960 | */ |
||
| 961 | public function setPref(\Eccube\Entity\Master\Pref $pref = null) |
||
| 967 | |||
| 968 | /** |
||
| 969 | * Get pref. |
||
| 970 | * |
||
| 971 | * @return \Eccube\Entity\Master\Pref|null |
||
| 972 | */ |
||
| 973 | public function getPref() |
||
| 977 | |||
| 978 | /** |
||
| 979 | * Set optionPoint |
||
| 980 | * |
||
| 981 | * @param boolean $optionPoint |
||
| 982 | * |
||
| 983 | * @return BaseInfo |
||
| 984 | */ |
||
| 985 | public function setOptionPoint($optionPoint) |
||
| 991 | |||
| 992 | /** |
||
| 993 | * Get optionPoint |
||
| 994 | * |
||
| 995 | * @return boolean |
||
| 996 | */ |
||
| 997 | public function isOptionPoint() |
||
| 1001 | |||
| 1002 | /** |
||
| 1003 | * Set pointConversionRate |
||
| 1004 | * |
||
| 1005 | * @param string $pointConversionRate |
||
| 1006 | * |
||
| 1007 | * @return BaseInfo |
||
| 1008 | */ |
||
| 1009 | public function setPointConversionRate($pointConversionRate) |
||
| 1015 | |||
| 1016 | /** |
||
| 1017 | * Get pointConversionRate |
||
| 1018 | * |
||
| 1019 | * @return string |
||
| 1020 | */ |
||
| 1021 | public function getPointConversionRate() |
||
| 1025 | |||
| 1026 | /** |
||
| 1027 | * Set basicPointRate |
||
| 1028 | * |
||
| 1029 | * @param string $basicPointRate |
||
| 1030 | * |
||
| 1031 | * @return BaseInfo |
||
| 1032 | */ |
||
| 1033 | public function setBasicPointRate($basicPointRate) |
||
| 1039 | |||
| 1040 | /** |
||
| 1041 | * Get basicPointRate |
||
| 1042 | * |
||
| 1043 | * @return string |
||
| 1044 | */ |
||
| 1045 | public function getBasicPointRate() |
||
| 1049 | } |
||
| 1050 | } |
||
| 1051 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.