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, options={"unsigned":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 boolean |
||
| 224 | * |
||
| 225 | * @ORM\Column(name="option_require_kana", type="boolean", options={"default":true}) |
||
| 226 | */ |
||
| 227 | private $option_require_kana = true; |
||
| 228 | |||
| 229 | /** |
||
| 230 | * @var string|null |
||
| 231 | * |
||
| 232 | * @ORM\Column(name="authentication_key", type="string", length=255, nullable=true) |
||
| 233 | */ |
||
| 234 | private $authentication_key; |
||
| 235 | |||
| 236 | /** |
||
| 237 | * @var string|null |
||
| 238 | * @deprecated 使用していないため、削除予定 |
||
| 239 | * |
||
| 240 | * @ORM\Column(name="php_path", type="string", length=255, nullable=true) |
||
| 241 | */ |
||
| 242 | private $php_path; |
||
| 243 | |||
| 244 | /** |
||
| 245 | * @var boolean |
||
| 246 | * |
||
| 247 | * @ORM\Column(name="option_point", type="boolean", options={"default":true}) |
||
| 248 | */ |
||
| 249 | private $option_point = true; |
||
| 250 | |||
| 251 | /** |
||
| 252 | * @var string |
||
| 253 | * |
||
| 254 | * @ORM\Column(name="basic_point_rate", type="decimal", precision=10, scale=0, options={"unsigned":true, "default":1}, nullable=true) |
||
| 255 | */ |
||
| 256 | private $basic_point_rate = '1'; |
||
| 257 | |||
| 258 | /** |
||
| 259 | * @var string |
||
| 260 | * |
||
| 261 | * @ORM\Column(name="point_conversion_rate", type="decimal", precision=10, scale=0, options={"unsigned":true, "default":1}, nullable=true) |
||
| 262 | */ |
||
| 263 | private $point_conversion_rate = '1'; |
||
| 264 | |||
| 265 | /** |
||
| 266 | * @var \Eccube\Entity\Master\Country |
||
| 267 | * |
||
| 268 | * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Country") |
||
| 269 | * @ORM\JoinColumns({ |
||
| 270 | * @ORM\JoinColumn(name="country_id", referencedColumnName="id") |
||
| 271 | * }) |
||
| 272 | * @ORM\Cache(usage="NONSTRICT_READ_WRITE") |
||
| 273 | */ |
||
| 274 | private $Country; |
||
| 275 | |||
| 276 | /** |
||
| 277 | 2 | * @var \Eccube\Entity\Master\Pref |
|
| 278 | * |
||
| 279 | 2 | * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Pref") |
|
| 280 | * @ORM\JoinColumns({ |
||
| 281 | * @ORM\JoinColumn(name="pref_id", referencedColumnName="id") |
||
| 282 | * }) |
||
| 283 | * @ORM\Cache(usage="NONSTRICT_READ_WRITE") |
||
| 284 | */ |
||
| 285 | private $Pref; |
||
| 286 | |||
| 287 | /** |
||
| 288 | * Get id. |
||
| 289 | 2 | * |
|
| 290 | * @return int |
||
| 291 | 2 | */ |
|
| 292 | public function getId() |
||
| 296 | |||
| 297 | /** |
||
| 298 | * Set companyName. |
||
| 299 | * |
||
| 300 | * @param string|null $companyName |
||
| 301 | 11 | * |
|
| 302 | * @return BaseInfo |
||
| 303 | 11 | */ |
|
| 304 | public function setCompanyName($companyName = null) |
||
| 310 | |||
| 311 | /** |
||
| 312 | * Get companyName. |
||
| 313 | * |
||
| 314 | * @return string|null |
||
| 315 | */ |
||
| 316 | public function getCompanyName() |
||
| 320 | |||
| 321 | /** |
||
| 322 | * Set companyKana. |
||
| 323 | * |
||
| 324 | * @param string|null $companyKana |
||
| 325 | 8 | * |
|
| 326 | * @return BaseInfo |
||
| 327 | 8 | */ |
|
| 328 | public function setCompanyKana($companyKana = null) |
||
| 334 | |||
| 335 | /** |
||
| 336 | * Get companyKana. |
||
| 337 | * |
||
| 338 | * @return string|null |
||
| 339 | */ |
||
| 340 | public function getCompanyKana() |
||
| 344 | |||
| 345 | /** |
||
| 346 | * Set postal_code. |
||
| 347 | * |
||
| 348 | * @param string|null $postal_code |
||
| 349 | 9 | * |
|
| 350 | * @return BaseInfo |
||
| 351 | 9 | */ |
|
| 352 | public function setPostalCode($postal_code = null) |
||
| 358 | |||
| 359 | /** |
||
| 360 | * Get postal_code. |
||
| 361 | 2 | * |
|
| 362 | * @return string|null |
||
| 363 | 2 | */ |
|
| 364 | public function getPostalCode() |
||
| 368 | |||
| 369 | /** |
||
| 370 | * Set addr01. |
||
| 371 | * |
||
| 372 | * @param string|null $addr01 |
||
| 373 | 11 | * |
|
| 374 | * @return BaseInfo |
||
| 375 | 11 | */ |
|
| 376 | public function setAddr01($addr01 = null) |
||
| 382 | |||
| 383 | /** |
||
| 384 | * Get addr01. |
||
| 385 | 2 | * |
|
| 386 | * @return string|null |
||
| 387 | 2 | */ |
|
| 388 | public function getAddr01() |
||
| 392 | |||
| 393 | /** |
||
| 394 | * Set addr02. |
||
| 395 | * |
||
| 396 | * @param string|null $addr02 |
||
| 397 | 11 | * |
|
| 398 | * @return BaseInfo |
||
| 399 | 11 | */ |
|
| 400 | public function setAddr02($addr02 = null) |
||
| 406 | |||
| 407 | /** |
||
| 408 | * Get addr02. |
||
| 409 | 6 | * |
|
| 410 | * @return string|null |
||
| 411 | 6 | */ |
|
| 412 | public function getAddr02() |
||
| 416 | |||
| 417 | /** |
||
| 418 | * Set phone_number. |
||
| 419 | * |
||
| 420 | * @param string|null $phone_number |
||
| 421 | 12 | * |
|
| 422 | * @return BaseInfo |
||
| 423 | 12 | */ |
|
| 424 | public function setPhoneNumber($phone_number = null) |
||
| 430 | |||
| 431 | /** |
||
| 432 | * Get phone_number. |
||
| 433 | * |
||
| 434 | * @return string|null |
||
| 435 | */ |
||
| 436 | public function getPhoneNumber() |
||
| 440 | |||
| 441 | /** |
||
| 442 | * Set businessHour. |
||
| 443 | * |
||
| 444 | * @param string|null $businessHour |
||
| 445 | 9 | * |
|
| 446 | * @return BaseInfo |
||
| 447 | 9 | */ |
|
| 448 | public function setBusinessHour($businessHour = null) |
||
| 454 | |||
| 455 | /** |
||
| 456 | * Get businessHour. |
||
| 457 | 9 | * |
|
| 458 | * @return string|null |
||
| 459 | 9 | */ |
|
| 460 | public function getBusinessHour() |
||
| 464 | |||
| 465 | /** |
||
| 466 | * Set email01. |
||
| 467 | * |
||
| 468 | * @param string|null $email01 |
||
| 469 | 36 | * |
|
| 470 | * @return BaseInfo |
||
| 471 | 36 | */ |
|
| 472 | public function setEmail01($email01 = null) |
||
| 478 | |||
| 479 | /** |
||
| 480 | * Get email01. |
||
| 481 | 7 | * |
|
| 482 | * @return string|null |
||
| 483 | 7 | */ |
|
| 484 | public function getEmail01() |
||
| 488 | |||
| 489 | /** |
||
| 490 | * Set email02. |
||
| 491 | * |
||
| 492 | * @param string|null $email02 |
||
| 493 | 22 | * |
|
| 494 | * @return BaseInfo |
||
| 495 | 22 | */ |
|
| 496 | public function setEmail02($email02 = null) |
||
| 502 | |||
| 503 | /** |
||
| 504 | * Get email02. |
||
| 505 | 7 | * |
|
| 506 | * @return string|null |
||
| 507 | 7 | */ |
|
| 508 | public function getEmail02() |
||
| 512 | |||
| 513 | /** |
||
| 514 | * Set email03. |
||
| 515 | * |
||
| 516 | * @param string|null $email03 |
||
| 517 | 33 | * |
|
| 518 | * @return BaseInfo |
||
| 519 | 33 | */ |
|
| 520 | public function setEmail03($email03 = null) |
||
| 526 | |||
| 527 | /** |
||
| 528 | * Get email03. |
||
| 529 | 7 | * |
|
| 530 | * @return string|null |
||
| 531 | 7 | */ |
|
| 532 | public function getEmail03() |
||
| 536 | |||
| 537 | /** |
||
| 538 | * Set email04. |
||
| 539 | * |
||
| 540 | * @param string|null $email04 |
||
| 541 | 36 | * |
|
| 542 | * @return BaseInfo |
||
| 543 | 36 | */ |
|
| 544 | public function setEmail04($email04 = null) |
||
| 550 | |||
| 551 | /** |
||
| 552 | * Get email04. |
||
| 553 | 9 | * |
|
| 554 | * @return string|null |
||
| 555 | 9 | */ |
|
| 556 | public function getEmail04() |
||
| 560 | |||
| 561 | /** |
||
| 562 | * Set shopName. |
||
| 563 | * |
||
| 564 | * @param string|null $shopName |
||
| 565 | 296 | * |
|
| 566 | * @return BaseInfo |
||
| 567 | 296 | */ |
|
| 568 | public function setShopName($shopName = null) |
||
| 574 | |||
| 575 | /** |
||
| 576 | * Get shopName. |
||
| 577 | * |
||
| 578 | * @return string|null |
||
| 579 | */ |
||
| 580 | public function getShopName() |
||
| 584 | |||
| 585 | /** |
||
| 586 | * Set shopKana. |
||
| 587 | * |
||
| 588 | * @param string|null $shopKana |
||
| 589 | 8 | * |
|
| 590 | * @return BaseInfo |
||
| 591 | 8 | */ |
|
| 592 | public function setShopKana($shopKana = null) |
||
| 598 | |||
| 599 | /** |
||
| 600 | * Get shopKana. |
||
| 601 | * |
||
| 602 | * @return string|null |
||
| 603 | */ |
||
| 604 | public function getShopKana() |
||
| 608 | |||
| 609 | /** |
||
| 610 | * Set shopNameEng. |
||
| 611 | * |
||
| 612 | * @param string|null $shopNameEng |
||
| 613 | 8 | * |
|
| 614 | * @return BaseInfo |
||
| 615 | 8 | */ |
|
| 616 | public function setShopNameEng($shopNameEng = null) |
||
| 622 | |||
| 623 | /** |
||
| 624 | * Get shopNameEng. |
||
| 625 | 53 | * |
|
| 626 | * @return string|null |
||
| 627 | 53 | */ |
|
| 628 | public function getShopNameEng() |
||
| 632 | |||
| 633 | /** |
||
| 634 | * Set updateDate. |
||
| 635 | * |
||
| 636 | * @param \DateTime $updateDate |
||
| 637 | * |
||
| 638 | * @return BaseInfo |
||
| 639 | */ |
||
| 640 | public function setUpdateDate($updateDate) |
||
| 646 | |||
| 647 | /** |
||
| 648 | * Get updateDate. |
||
| 649 | * |
||
| 650 | * @return \DateTime |
||
| 651 | */ |
||
| 652 | public function getUpdateDate() |
||
| 656 | |||
| 657 | /** |
||
| 658 | * Set goodTraded. |
||
| 659 | * |
||
| 660 | * @param string|null $goodTraded |
||
| 661 | 9 | * |
|
| 662 | * @return BaseInfo |
||
| 663 | 9 | */ |
|
| 664 | public function setGoodTraded($goodTraded = null) |
||
| 670 | |||
| 671 | /** |
||
| 672 | * Get goodTraded. |
||
| 673 | * |
||
| 674 | * @return string|null |
||
| 675 | */ |
||
| 676 | public function getGoodTraded() |
||
| 680 | |||
| 681 | /** |
||
| 682 | * Set message. |
||
| 683 | * |
||
| 684 | * @param string|null $message |
||
| 685 | 9 | * |
|
| 686 | * @return BaseInfo |
||
| 687 | 9 | */ |
|
| 688 | public function setMessage($message = null) |
||
| 694 | |||
| 695 | /** |
||
| 696 | * Get message. |
||
| 697 | 18 | * |
|
| 698 | * @return string|null |
||
| 699 | 18 | */ |
|
| 700 | public function getMessage() |
||
| 704 | |||
| 705 | /** |
||
| 706 | * Set deliveryFreeAmount. |
||
| 707 | * |
||
| 708 | * @param string|null $deliveryFreeAmount |
||
| 709 | 99 | * |
|
| 710 | * @return BaseInfo |
||
| 711 | 99 | */ |
|
| 712 | public function setDeliveryFreeAmount($deliveryFreeAmount = null) |
||
| 718 | |||
| 719 | /** |
||
| 720 | * Get deliveryFreeAmount. |
||
| 721 | 18 | * |
|
| 722 | * @return string|null |
||
| 723 | 18 | */ |
|
| 724 | public function getDeliveryFreeAmount() |
||
| 728 | |||
| 729 | /** |
||
| 730 | * Set deliveryFreeQuantity. |
||
| 731 | * |
||
| 732 | * @param int|null $deliveryFreeQuantity |
||
| 733 | 99 | * |
|
| 734 | * @return BaseInfo |
||
| 735 | 99 | */ |
|
| 736 | public function setDeliveryFreeQuantity($deliveryFreeQuantity = null) |
||
| 742 | |||
| 743 | /** |
||
| 744 | * Get deliveryFreeQuantity. |
||
| 745 | 7 | * |
|
| 746 | * @return int|null |
||
| 747 | 7 | */ |
|
| 748 | public function getDeliveryFreeQuantity() |
||
| 752 | |||
| 753 | /** |
||
| 754 | * Set optionMypageOrderStatusDisplay. |
||
| 755 | * |
||
| 756 | * @param boolean $optionMypageOrderStatusDisplay |
||
| 757 | 8 | * |
|
| 758 | * @return BaseInfo |
||
| 759 | 8 | */ |
|
| 760 | public function setOptionMypageOrderStatusDisplay($optionMypageOrderStatusDisplay) |
||
| 766 | |||
| 767 | /** |
||
| 768 | * Get optionMypageOrderStatusDisplay. |
||
| 769 | * |
||
| 770 | * @return boolean |
||
| 771 | */ |
||
| 772 | public function isOptionMypageOrderStatusDisplay() |
||
| 776 | |||
| 777 | /** |
||
| 778 | * Set optionNostockHidden. |
||
| 779 | * |
||
| 780 | * @param integer $optionNostockHidden |
||
| 781 | 8 | * |
|
| 782 | * @return BaseInfo |
||
| 783 | 8 | */ |
|
| 784 | public function setOptionNostockHidden($optionNostockHidden) |
||
| 790 | |||
| 791 | /** |
||
| 792 | * Get optionNostockHidden. |
||
| 793 | 10 | * |
|
| 794 | * @return boolean |
||
| 795 | 10 | */ |
|
| 796 | public function isOptionNostockHidden() |
||
| 800 | |||
| 801 | /** |
||
| 802 | * Set optionFavoriteProduct. |
||
| 803 | * |
||
| 804 | * @param boolean $optionFavoriteProduct |
||
| 805 | 121 | * |
|
| 806 | * @return BaseInfo |
||
| 807 | 121 | */ |
|
| 808 | public function setOptionFavoriteProduct($optionFavoriteProduct) |
||
| 814 | |||
| 815 | /** |
||
| 816 | * Get optionFavoriteProduct. |
||
| 817 | * |
||
| 818 | * @return boolean |
||
| 819 | */ |
||
| 820 | public function isOptionFavoriteProduct() |
||
| 824 | |||
| 825 | /** |
||
| 826 | * Set optionProductDeliveryFee. |
||
| 827 | * |
||
| 828 | * @param boolean $optionProductDeliveryFee |
||
| 829 | 31 | * |
|
| 830 | * @return BaseInfo |
||
| 831 | 31 | */ |
|
| 832 | public function setOptionProductDeliveryFee($optionProductDeliveryFee) |
||
| 838 | |||
| 839 | /** |
||
| 840 | * Get optionProductDeliveryFee. |
||
| 841 | 41 | * |
|
| 842 | * @return boolean |
||
| 843 | 41 | */ |
|
| 844 | public function isOptionProductDeliveryFee() |
||
| 848 | |||
| 849 | /** |
||
| 850 | * Set optionProductTaxRule. |
||
| 851 | * |
||
| 852 | * @param boolean $optionProductTaxRule |
||
| 853 | 474 | * |
|
| 854 | * @return BaseInfo |
||
| 855 | 474 | */ |
|
| 856 | public function setOptionProductTaxRule($optionProductTaxRule) |
||
| 862 | |||
| 863 | /** |
||
| 864 | * Get optionProductTaxRule. |
||
| 865 | 8 | * |
|
| 866 | * @return boolean |
||
| 867 | 8 | */ |
|
| 868 | public function isOptionProductTaxRule() |
||
| 872 | |||
| 873 | /** |
||
| 874 | * Set optionCustomerActivate. |
||
| 875 | * |
||
| 876 | * @param boolean $optionCustomerActivate |
||
| 877 | 9 | * |
|
| 878 | * @return BaseInfo |
||
| 879 | 9 | */ |
|
| 880 | public function setOptionCustomerActivate($optionCustomerActivate) |
||
| 886 | |||
| 887 | /** |
||
| 888 | * Get optionCustomerActivate. |
||
| 889 | 7 | * |
|
| 890 | * @return boolean |
||
| 891 | 7 | */ |
|
| 892 | public function isOptionCustomerActivate() |
||
| 896 | |||
| 897 | /** |
||
| 898 | * Set optionRememberMe. |
||
| 899 | * |
||
| 900 | * @param boolean $optionRememberMe |
||
| 901 | 11 | * |
|
| 902 | * @return BaseInfo |
||
| 903 | 11 | */ |
|
| 904 | public function setOptionRememberMe($optionRememberMe) |
||
| 910 | |||
| 911 | /** |
||
| 912 | * Set optionRequireKana |
||
| 913 | * |
||
| 914 | * @param boolean $optionRequireKana |
||
| 915 | * |
||
| 916 | * @return BaseInfo |
||
| 917 | */ |
||
| 918 | public function setOptionRequireKana($optionRequireKana) |
||
| 924 | |||
| 925 | /** |
||
| 926 | * Get optionRememberMe. |
||
| 927 | * |
||
| 928 | * @return boolean |
||
| 929 | */ |
||
| 930 | public function isOptionRememberMe() |
||
| 934 | |||
| 935 | /** |
||
| 936 | * Get optionRequireKana |
||
| 937 | * |
||
| 938 | * @return boolean |
||
| 939 | */ |
||
| 940 | public function isOptionRequireKana() |
||
| 944 | |||
| 945 | /** |
||
| 946 | * Set authenticationKey. |
||
| 947 | * |
||
| 948 | * @param string|null $authenticationKey |
||
| 949 | * |
||
| 950 | * @return BaseInfo |
||
| 951 | */ |
||
| 952 | public function setAuthenticationKey($authenticationKey = null) |
||
| 958 | |||
| 959 | /** |
||
| 960 | * Get authenticationKey. |
||
| 961 | * |
||
| 962 | * @return string|null |
||
| 963 | */ |
||
| 964 | public function getAuthenticationKey() |
||
| 968 | |||
| 969 | /** |
||
| 970 | * Set country. |
||
| 971 | * |
||
| 972 | * @param \Eccube\Entity\Master\Country|null $country |
||
| 973 | 8 | * |
|
| 974 | * @return BaseInfo |
||
| 975 | 8 | */ |
|
| 976 | public function setCountry(\Eccube\Entity\Master\Country $country = null) |
||
| 982 | |||
| 983 | /** |
||
| 984 | * Get country. |
||
| 985 | 7 | * |
|
| 986 | * @return \Eccube\Entity\Master\Country|null |
||
| 987 | 7 | */ |
|
| 988 | public function getCountry() |
||
| 992 | |||
| 993 | /** |
||
| 994 | * Set pref. |
||
| 995 | * |
||
| 996 | * @param \Eccube\Entity\Master\Pref|null $pref |
||
| 997 | 273 | * |
|
| 998 | * @return BaseInfo |
||
| 999 | 273 | */ |
|
| 1000 | public function setPref(\Eccube\Entity\Master\Pref $pref = null) |
||
| 1006 | |||
| 1007 | /** |
||
| 1008 | * Get pref. |
||
| 1009 | 10 | * |
|
| 1010 | * @return \Eccube\Entity\Master\Pref|null |
||
| 1011 | 10 | */ |
|
| 1012 | public function getPref() |
||
| 1016 | |||
| 1017 | /** |
||
| 1018 | * Set optionPoint |
||
| 1019 | * |
||
| 1020 | * @param boolean $optionPoint |
||
| 1021 | 25 | * |
|
| 1022 | * @return BaseInfo |
||
| 1023 | 25 | */ |
|
| 1024 | public function setOptionPoint($optionPoint) |
||
| 1030 | |||
| 1031 | /** |
||
| 1032 | * Get optionPoint |
||
| 1033 | 10 | * |
|
| 1034 | * @return boolean |
||
| 1035 | 10 | */ |
|
| 1036 | public function isOptionPoint() |
||
| 1040 | |||
| 1041 | /** |
||
| 1042 | * Set pointConversionRate |
||
| 1043 | * |
||
| 1044 | * @param string $pointConversionRate |
||
| 1045 | 223 | * |
|
| 1046 | * @return BaseInfo |
||
| 1047 | 223 | */ |
|
| 1048 | public function setPointConversionRate($pointConversionRate) |
||
| 1054 | |||
| 1055 | /** |
||
| 1056 | * Get pointConversionRate |
||
| 1057 | * |
||
| 1058 | * @return string |
||
| 1059 | */ |
||
| 1060 | public function getPointConversionRate() |
||
| 1064 | |||
| 1065 | /** |
||
| 1066 | * Set basicPointRate |
||
| 1067 | * |
||
| 1068 | * @param string $basicPointRate |
||
| 1069 | * |
||
| 1070 | * @return BaseInfo |
||
| 1071 | */ |
||
| 1072 | public function setBasicPointRate($basicPointRate) |
||
| 1078 | |||
| 1079 | /** |
||
| 1080 | * Get basicPointRate |
||
| 1081 | * |
||
| 1082 | * @return string |
||
| 1083 | */ |
||
| 1084 | public function getBasicPointRate() |
||
| 1088 | |||
| 1089 | /** |
||
| 1090 | * @return null|string |
||
| 1091 | * @deprecated 使用していないため、削除予定 |
||
| 1092 | */ |
||
| 1093 | public function getPhpPath() |
||
| 1097 | |||
| 1098 | /** |
||
| 1099 | * @param null|string $php_path |
||
| 1100 | * @deprecated 使用していないため、削除予定 |
||
| 1101 | * |
||
| 1102 | * @return $this |
||
| 1103 | */ |
||
| 1104 | public function setPhpPath($php_path) |
||
| 1110 | } |
||
| 1111 | } |
||
| 1112 |
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.