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 |
||
| 28 | class BaseInfo extends \Eccube\Entity\AbstractEntity |
||
| 29 | { |
||
| 30 | /** |
||
| 31 | * @var int |
||
| 32 | * |
||
| 33 | * @ORM\Column(name="id", type="integer", options={"unsigned":true}) |
||
| 34 | * @ORM\Id |
||
| 35 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
| 36 | */ |
||
| 37 | private $id; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var string|null |
||
| 41 | * |
||
| 42 | * @ORM\Column(name="company_name", type="string", length=255, nullable=true) |
||
| 43 | */ |
||
| 44 | private $company_name; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @var string|null |
||
| 48 | * |
||
| 49 | * @ORM\Column(name="company_kana", type="string", length=255, nullable=true) |
||
| 50 | */ |
||
| 51 | private $company_kana; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @var string|null |
||
| 55 | * |
||
| 56 | * @ORM\Column(name="zip01", type="string", length=3, nullable=true) |
||
| 57 | */ |
||
| 58 | private $zip01; |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @var string|null |
||
| 62 | * |
||
| 63 | * @ORM\Column(name="zip02", type="string", length=4, nullable=true) |
||
| 64 | */ |
||
| 65 | private $zip02; |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @var string|null |
||
| 69 | * |
||
| 70 | * @ORM\Column(name="zipcode", type="string", length=7, nullable=true) |
||
| 71 | */ |
||
| 72 | private $zipcode; |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @var string|null |
||
| 76 | * |
||
| 77 | * @ORM\Column(name="addr01", type="string", length=255, nullable=true) |
||
| 78 | */ |
||
| 79 | private $addr01; |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @var string|null |
||
| 83 | * |
||
| 84 | * @ORM\Column(name="addr02", type="string", length=255, nullable=true) |
||
| 85 | */ |
||
| 86 | private $addr02; |
||
| 87 | |||
| 88 | /** |
||
| 89 | * @var string|null |
||
| 90 | * |
||
| 91 | * @ORM\Column(name="tel01", type="string", length=5, nullable=true) |
||
| 92 | */ |
||
| 93 | private $tel01; |
||
| 94 | |||
| 95 | /** |
||
| 96 | * @var string|null |
||
| 97 | * |
||
| 98 | * @ORM\Column(name="tel02", type="string", length=4, nullable=true) |
||
| 99 | */ |
||
| 100 | private $tel02; |
||
| 101 | |||
| 102 | /** |
||
| 103 | * @var string|null |
||
| 104 | * |
||
| 105 | * @ORM\Column(name="tel03", type="string", length=4, nullable=true) |
||
| 106 | */ |
||
| 107 | private $tel03; |
||
| 108 | |||
| 109 | /** |
||
| 110 | * @var string|null |
||
| 111 | * |
||
| 112 | * @ORM\Column(name="fax01", type="string", length=5, nullable=true) |
||
| 113 | */ |
||
| 114 | private $fax01; |
||
| 115 | |||
| 116 | /** |
||
| 117 | * @var string|null |
||
| 118 | * |
||
| 119 | * @ORM\Column(name="fax02", type="string", length=4, nullable=true) |
||
| 120 | */ |
||
| 121 | private $fax02; |
||
| 122 | |||
| 123 | /** |
||
| 124 | * @var string|null |
||
| 125 | * |
||
| 126 | * @ORM\Column(name="fax03", type="string", length=4, nullable=true) |
||
| 127 | */ |
||
| 128 | private $fax03; |
||
| 129 | |||
| 130 | /** |
||
| 131 | * @var string|null |
||
| 132 | * |
||
| 133 | * @ORM\Column(name="business_hour", type="string", length=255, nullable=true) |
||
| 134 | */ |
||
| 135 | private $business_hour; |
||
| 136 | |||
| 137 | /** |
||
| 138 | * @var string|null |
||
| 139 | * |
||
| 140 | * @ORM\Column(name="email01", type="string", length=255, nullable=true) |
||
| 141 | */ |
||
| 142 | private $email01; |
||
| 143 | |||
| 144 | /** |
||
| 145 | * @var string|null |
||
| 146 | * |
||
| 147 | * @ORM\Column(name="email02", type="string", length=255, nullable=true) |
||
| 148 | */ |
||
| 149 | private $email02; |
||
| 150 | |||
| 151 | /** |
||
| 152 | * @var string|null |
||
| 153 | * |
||
| 154 | * @ORM\Column(name="email03", type="string", length=255, nullable=true) |
||
| 155 | */ |
||
| 156 | private $email03; |
||
| 157 | |||
| 158 | /** |
||
| 159 | * @var string|null |
||
| 160 | * |
||
| 161 | * @ORM\Column(name="email04", type="string", length=255, nullable=true) |
||
| 162 | */ |
||
| 163 | private $email04; |
||
| 164 | |||
| 165 | /** |
||
| 166 | * @var string|null |
||
| 167 | * |
||
| 168 | * @ORM\Column(name="shop_name", type="string", length=255, nullable=true) |
||
| 169 | */ |
||
| 170 | private $shop_name; |
||
| 171 | |||
| 172 | /** |
||
| 173 | * @var string|null |
||
| 174 | * |
||
| 175 | * @ORM\Column(name="shop_kana", type="string", length=255, nullable=true) |
||
| 176 | */ |
||
| 177 | private $shop_kana; |
||
| 178 | |||
| 179 | /** |
||
| 180 | * @var string|null |
||
| 181 | * |
||
| 182 | * @ORM\Column(name="shop_name_eng", type="string", length=255, nullable=true) |
||
| 183 | */ |
||
| 184 | private $shop_name_eng; |
||
| 185 | |||
| 186 | /** |
||
| 187 | * @var \DateTime |
||
| 188 | * |
||
| 189 | * @ORM\Column(name="update_date", type="datetimetz") |
||
| 190 | */ |
||
| 191 | private $update_date; |
||
| 192 | |||
| 193 | /** |
||
| 194 | * @var string|null |
||
| 195 | * |
||
| 196 | * @ORM\Column(name="good_traded", type="string", length=4000, nullable=true) |
||
| 197 | */ |
||
| 198 | private $good_traded; |
||
| 199 | |||
| 200 | /** |
||
| 201 | * @var string|null |
||
| 202 | * |
||
| 203 | * @ORM\Column(name="message", type="string", length=4000, nullable=true) |
||
| 204 | */ |
||
| 205 | private $message; |
||
| 206 | |||
| 207 | /** |
||
| 208 | * @var string|null |
||
| 209 | * |
||
| 210 | * @ORM\Column(name="delivery_free_amount", type="decimal", precision=12, scale=2, nullable=true) |
||
| 211 | */ |
||
| 212 | private $delivery_free_amount; |
||
| 213 | |||
| 214 | /** |
||
| 215 | * @var int|null |
||
| 216 | * |
||
| 217 | * @ORM\Column(name="delivery_free_quantity", type="integer", nullable=true, options={"unsigned":true}) |
||
| 218 | */ |
||
| 219 | private $delivery_free_quantity; |
||
| 220 | |||
| 221 | /** |
||
| 222 | * @var boolean |
||
| 223 | * |
||
| 224 | * @ORM\Column(name="option_mypage_order_status_display", type="boolean", options={"default":true}) |
||
| 225 | */ |
||
| 226 | private $option_mypage_order_status_display = true; |
||
| 227 | |||
| 228 | /** |
||
| 229 | * @var boolean |
||
| 230 | * |
||
| 231 | * @ORM\Column(name="option_nostock_hidden", type="boolean", options={"default":false}) |
||
| 232 | */ |
||
| 233 | private $option_nostock_hidden = false; |
||
| 234 | |||
| 235 | /** |
||
| 236 | * @var boolean |
||
| 237 | * |
||
| 238 | * @ORM\Column(name="option_favorite_product", type="boolean", options={"default":true}) |
||
| 239 | */ |
||
| 240 | private $option_favorite_product = true; |
||
| 241 | |||
| 242 | /** |
||
| 243 | * @var boolean |
||
| 244 | * |
||
| 245 | * @ORM\Column(name="option_product_delivery_fee", type="boolean", options={"default":false}) |
||
| 246 | */ |
||
| 247 | private $option_product_delivery_fee = false; |
||
| 248 | |||
| 249 | /** |
||
| 250 | * @var boolean |
||
| 251 | * |
||
| 252 | * @ORM\Column(name="option_product_tax_rule", type="boolean", options={"default":false}) |
||
| 253 | */ |
||
| 254 | private $option_product_tax_rule = false; |
||
| 255 | |||
| 256 | /** |
||
| 257 | * @var boolean |
||
| 258 | * |
||
| 259 | * @ORM\Column(name="option_customer_activate", type="boolean", options={"default":true}) |
||
| 260 | */ |
||
| 261 | private $option_customer_activate = true; |
||
| 262 | |||
| 263 | /** |
||
| 264 | * @var boolean |
||
| 265 | * |
||
| 266 | * @ORM\Column(name="option_remember_me", type="boolean", options={"default":true}) |
||
| 267 | */ |
||
| 268 | private $option_remember_me = true; |
||
| 269 | |||
| 270 | /** |
||
| 271 | * @var string|null |
||
| 272 | * |
||
| 273 | * @ORM\Column(name="authentication_key", type="string", length=255, nullable=true) |
||
| 274 | */ |
||
| 275 | private $authentication_key; |
||
| 276 | |||
| 277 | /** |
||
| 278 | * @var boolean |
||
| 279 | * |
||
| 280 | * @ORM\Column(name="option_point", type="boolean", options={"default":true}) |
||
| 281 | */ |
||
| 282 | private $option_point = true; |
||
| 283 | |||
| 284 | /** |
||
| 285 | * @var string |
||
| 286 | * |
||
| 287 | * @ORM\Column(name="basic_point_rate", type="decimal", precision=10, scale=0, options={"unsigned":true, "default":1}, nullable=true) |
||
| 288 | */ |
||
| 289 | private $basic_point_rate = '1'; |
||
| 290 | |||
| 291 | /** |
||
| 292 | * @var string |
||
| 293 | * |
||
| 294 | * @ORM\Column(name="point_conversion_rate", type="decimal", precision=10, scale=0, options={"unsigned":true, "default":1}, nullable=true) |
||
| 295 | */ |
||
| 296 | private $point_conversion_rate = '1'; |
||
| 297 | |||
| 298 | /** |
||
| 299 | * @var \Eccube\Entity\Master\Country |
||
| 300 | * |
||
| 301 | * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Country") |
||
| 302 | * @ORM\JoinColumns({ |
||
| 303 | * @ORM\JoinColumn(name="country_id", referencedColumnName="id") |
||
| 304 | * }) |
||
| 305 | * @ORM\Cache(usage="NONSTRICT_READ_WRITE") |
||
| 306 | */ |
||
| 307 | private $Country; |
||
| 308 | |||
| 309 | /** |
||
| 310 | * @var \Eccube\Entity\Master\Pref |
||
| 311 | * |
||
| 312 | * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Pref") |
||
| 313 | * @ORM\JoinColumns({ |
||
| 314 | * @ORM\JoinColumn(name="pref_id", referencedColumnName="id") |
||
| 315 | * }) |
||
| 316 | * @ORM\Cache(usage="NONSTRICT_READ_WRITE") |
||
| 317 | */ |
||
| 318 | private $Pref; |
||
| 319 | |||
| 320 | /** |
||
| 321 | * Get id. |
||
| 322 | * |
||
| 323 | * @return int |
||
| 324 | */ |
||
| 325 | 2 | public function getId() |
|
| 329 | |||
| 330 | /** |
||
| 331 | * Set companyName. |
||
| 332 | * |
||
| 333 | * @param string|null $companyName |
||
| 334 | * |
||
| 335 | * @return BaseInfo |
||
| 336 | */ |
||
| 337 | 2 | public function setCompanyName($companyName = null) |
|
| 343 | |||
| 344 | /** |
||
| 345 | * Get companyName. |
||
| 346 | * |
||
| 347 | * @return string|null |
||
| 348 | */ |
||
| 349 | 12 | public function getCompanyName() |
|
| 353 | |||
| 354 | /** |
||
| 355 | * Set companyKana. |
||
| 356 | * |
||
| 357 | * @param string|null $companyKana |
||
| 358 | * |
||
| 359 | * @return BaseInfo |
||
| 360 | */ |
||
| 361 | public function setCompanyKana($companyKana = null) |
||
| 367 | |||
| 368 | /** |
||
| 369 | * Get companyKana. |
||
| 370 | * |
||
| 371 | * @return string|null |
||
| 372 | */ |
||
| 373 | 9 | public function getCompanyKana() |
|
| 377 | |||
| 378 | /** |
||
| 379 | * Set zip01. |
||
| 380 | * |
||
| 381 | * @param string|null $zip01 |
||
| 382 | * |
||
| 383 | * @return BaseInfo |
||
| 384 | */ |
||
| 385 | public function setZip01($zip01 = null) |
||
| 391 | |||
| 392 | /** |
||
| 393 | * Get zip01. |
||
| 394 | * |
||
| 395 | * @return string|null |
||
| 396 | */ |
||
| 397 | 10 | public function getZip01() |
|
| 401 | |||
| 402 | /** |
||
| 403 | * Set zip02. |
||
| 404 | * |
||
| 405 | * @param string|null $zip02 |
||
| 406 | * |
||
| 407 | * @return BaseInfo |
||
| 408 | */ |
||
| 409 | public function setZip02($zip02 = null) |
||
| 415 | |||
| 416 | /** |
||
| 417 | * Get zip02. |
||
| 418 | * |
||
| 419 | * @return string|null |
||
| 420 | */ |
||
| 421 | 10 | public function getZip02() |
|
| 425 | |||
| 426 | /** |
||
| 427 | * Set zipcode. |
||
| 428 | * |
||
| 429 | * @param string|null $zipcode |
||
| 430 | * |
||
| 431 | * @return BaseInfo |
||
| 432 | */ |
||
| 433 | public function setZipcode($zipcode = null) |
||
| 439 | |||
| 440 | /** |
||
| 441 | * Get zipcode. |
||
| 442 | * |
||
| 443 | * @return string|null |
||
| 444 | */ |
||
| 445 | public function getZipcode() |
||
| 449 | |||
| 450 | /** |
||
| 451 | * Set addr01. |
||
| 452 | * |
||
| 453 | * @param string|null $addr01 |
||
| 454 | * |
||
| 455 | * @return BaseInfo |
||
| 456 | */ |
||
| 457 | 2 | public function setAddr01($addr01 = null) |
|
| 463 | |||
| 464 | /** |
||
| 465 | * Get addr01. |
||
| 466 | * |
||
| 467 | * @return string|null |
||
| 468 | */ |
||
| 469 | 10 | public function getAddr01() |
|
| 473 | |||
| 474 | /** |
||
| 475 | * Set addr02. |
||
| 476 | * |
||
| 477 | * @param string|null $addr02 |
||
| 478 | * |
||
| 479 | * @return BaseInfo |
||
| 480 | */ |
||
| 481 | 2 | public function setAddr02($addr02 = null) |
|
| 487 | |||
| 488 | /** |
||
| 489 | * Get addr02. |
||
| 490 | * |
||
| 491 | * @return string|null |
||
| 492 | */ |
||
| 493 | 10 | public function getAddr02() |
|
| 497 | |||
| 498 | /** |
||
| 499 | * Set tel01. |
||
| 500 | * |
||
| 501 | * @param string|null $tel01 |
||
| 502 | * |
||
| 503 | * @return BaseInfo |
||
| 504 | */ |
||
| 505 | 7 | public function setTel01($tel01 = null) |
|
| 511 | |||
| 512 | /** |
||
| 513 | * Get tel01. |
||
| 514 | * |
||
| 515 | * @return string|null |
||
| 516 | */ |
||
| 517 | 10 | public function getTel01() |
|
| 521 | |||
| 522 | /** |
||
| 523 | * Set tel02. |
||
| 524 | * |
||
| 525 | * @param string|null $tel02 |
||
| 526 | * |
||
| 527 | * @return BaseInfo |
||
| 528 | */ |
||
| 529 | 7 | public function setTel02($tel02 = null) |
|
| 535 | |||
| 536 | /** |
||
| 537 | * Get tel02. |
||
| 538 | * |
||
| 539 | * @return string|null |
||
| 540 | */ |
||
| 541 | 10 | public function getTel02() |
|
| 545 | |||
| 546 | /** |
||
| 547 | * Set tel03. |
||
| 548 | * |
||
| 549 | * @param string|null $tel03 |
||
| 550 | * |
||
| 551 | * @return BaseInfo |
||
| 552 | */ |
||
| 553 | 7 | public function setTel03($tel03 = null) |
|
| 559 | |||
| 560 | /** |
||
| 561 | * Get tel03. |
||
| 562 | * |
||
| 563 | * @return string|null |
||
| 564 | */ |
||
| 565 | 10 | public function getTel03() |
|
| 569 | |||
| 570 | /** |
||
| 571 | * Set fax01. |
||
| 572 | * |
||
| 573 | * @param string|null $fax01 |
||
| 574 | * |
||
| 575 | * @return BaseInfo |
||
| 576 | */ |
||
| 577 | 7 | public function setFax01($fax01 = null) |
|
| 583 | |||
| 584 | /** |
||
| 585 | * Get fax01. |
||
| 586 | * |
||
| 587 | * @return string|null |
||
| 588 | */ |
||
| 589 | 10 | public function getFax01() |
|
| 593 | |||
| 594 | /** |
||
| 595 | * Set fax02. |
||
| 596 | * |
||
| 597 | * @param string|null $fax02 |
||
| 598 | * |
||
| 599 | * @return BaseInfo |
||
| 600 | */ |
||
| 601 | 7 | public function setFax02($fax02 = null) |
|
| 607 | |||
| 608 | /** |
||
| 609 | * Get fax02. |
||
| 610 | * |
||
| 611 | * @return string|null |
||
| 612 | */ |
||
| 613 | 10 | public function getFax02() |
|
| 617 | |||
| 618 | /** |
||
| 619 | * Set fax03. |
||
| 620 | * |
||
| 621 | * @param string|null $fax03 |
||
| 622 | * |
||
| 623 | * @return BaseInfo |
||
| 624 | */ |
||
| 625 | 7 | public function setFax03($fax03 = null) |
|
| 631 | |||
| 632 | /** |
||
| 633 | * Get fax03. |
||
| 634 | * |
||
| 635 | * @return string|null |
||
| 636 | */ |
||
| 637 | 10 | public function getFax03() |
|
| 641 | |||
| 642 | /** |
||
| 643 | * Set businessHour. |
||
| 644 | * |
||
| 645 | * @param string|null $businessHour |
||
| 646 | * |
||
| 647 | * @return BaseInfo |
||
| 648 | */ |
||
| 649 | public function setBusinessHour($businessHour = null) |
||
| 655 | |||
| 656 | /** |
||
| 657 | * Get businessHour. |
||
| 658 | * |
||
| 659 | * @return string|null |
||
| 660 | */ |
||
| 661 | 10 | public function getBusinessHour() |
|
| 665 | |||
| 666 | /** |
||
| 667 | * Set email01. |
||
| 668 | * |
||
| 669 | * @param string|null $email01 |
||
| 670 | * |
||
| 671 | * @return BaseInfo |
||
| 672 | */ |
||
| 673 | 10 | public function setEmail01($email01 = null) |
|
| 679 | |||
| 680 | /** |
||
| 681 | * Get email01. |
||
| 682 | * |
||
| 683 | * @return string|null |
||
| 684 | */ |
||
| 685 | 34 | public function getEmail01() |
|
| 689 | |||
| 690 | /** |
||
| 691 | * Set email02. |
||
| 692 | * |
||
| 693 | * @param string|null $email02 |
||
| 694 | * |
||
| 695 | * @return BaseInfo |
||
| 696 | */ |
||
| 697 | 8 | public function setEmail02($email02 = null) |
|
| 703 | |||
| 704 | /** |
||
| 705 | * Get email02. |
||
| 706 | * |
||
| 707 | * @return string|null |
||
| 708 | */ |
||
| 709 | 23 | public function getEmail02() |
|
| 713 | |||
| 714 | /** |
||
| 715 | * Set email03. |
||
| 716 | * |
||
| 717 | * @param string|null $email03 |
||
| 718 | * |
||
| 719 | * @return BaseInfo |
||
| 720 | */ |
||
| 721 | 8 | public function setEmail03($email03 = null) |
|
| 727 | |||
| 728 | /** |
||
| 729 | * Get email03. |
||
| 730 | * |
||
| 731 | * @return string|null |
||
| 732 | */ |
||
| 733 | 34 | public function getEmail03() |
|
| 737 | |||
| 738 | /** |
||
| 739 | * Set email04. |
||
| 740 | * |
||
| 741 | * @param string|null $email04 |
||
| 742 | * |
||
| 743 | * @return BaseInfo |
||
| 744 | */ |
||
| 745 | 8 | public function setEmail04($email04 = null) |
|
| 751 | |||
| 752 | /** |
||
| 753 | * Get email04. |
||
| 754 | * |
||
| 755 | * @return string|null |
||
| 756 | */ |
||
| 757 | 37 | public function getEmail04() |
|
| 761 | |||
| 762 | /** |
||
| 763 | * Set shopName. |
||
| 764 | * |
||
| 765 | * @param string|null $shopName |
||
| 766 | * |
||
| 767 | * @return BaseInfo |
||
| 768 | */ |
||
| 769 | 10 | public function setShopName($shopName = null) |
|
| 775 | |||
| 776 | /** |
||
| 777 | * Get shopName. |
||
| 778 | * |
||
| 779 | * @return string|null |
||
| 780 | */ |
||
| 781 | 290 | public function getShopName() |
|
| 785 | |||
| 786 | /** |
||
| 787 | * Set shopKana. |
||
| 788 | * |
||
| 789 | * @param string|null $shopKana |
||
| 790 | * |
||
| 791 | * @return BaseInfo |
||
| 792 | */ |
||
| 793 | public function setShopKana($shopKana = null) |
||
| 799 | |||
| 800 | /** |
||
| 801 | * Get shopKana. |
||
| 802 | * |
||
| 803 | * @return string|null |
||
| 804 | */ |
||
| 805 | 9 | public function getShopKana() |
|
| 809 | |||
| 810 | /** |
||
| 811 | * Set shopNameEng. |
||
| 812 | * |
||
| 813 | * @param string|null $shopNameEng |
||
| 814 | * |
||
| 815 | * @return BaseInfo |
||
| 816 | */ |
||
| 817 | public function setShopNameEng($shopNameEng = null) |
||
| 823 | |||
| 824 | /** |
||
| 825 | * Get shopNameEng. |
||
| 826 | * |
||
| 827 | * @return string|null |
||
| 828 | */ |
||
| 829 | 9 | public function getShopNameEng() |
|
| 833 | |||
| 834 | /** |
||
| 835 | * Set updateDate. |
||
| 836 | * |
||
| 837 | * @param \DateTime $updateDate |
||
| 838 | * |
||
| 839 | * @return BaseInfo |
||
| 840 | */ |
||
| 841 | 43 | public function setUpdateDate($updateDate) |
|
| 847 | |||
| 848 | /** |
||
| 849 | * Get updateDate. |
||
| 850 | * |
||
| 851 | * @return \DateTime |
||
| 852 | */ |
||
| 853 | public function getUpdateDate() |
||
| 857 | |||
| 858 | /** |
||
| 859 | * Set goodTraded. |
||
| 860 | * |
||
| 861 | * @param string|null $goodTraded |
||
| 862 | * |
||
| 863 | * @return BaseInfo |
||
| 864 | */ |
||
| 865 | public function setGoodTraded($goodTraded = null) |
||
| 871 | |||
| 872 | /** |
||
| 873 | * Get goodTraded. |
||
| 874 | * |
||
| 875 | * @return string|null |
||
| 876 | */ |
||
| 877 | 10 | public function getGoodTraded() |
|
| 881 | |||
| 882 | /** |
||
| 883 | * Set message. |
||
| 884 | * |
||
| 885 | * @param string|null $message |
||
| 886 | * |
||
| 887 | * @return BaseInfo |
||
| 888 | */ |
||
| 889 | public function setMessage($message = null) |
||
| 895 | |||
| 896 | /** |
||
| 897 | * Get message. |
||
| 898 | * |
||
| 899 | * @return string|null |
||
| 900 | */ |
||
| 901 | 10 | public function getMessage() |
|
| 905 | |||
| 906 | /** |
||
| 907 | * Set deliveryFreeAmount. |
||
| 908 | * |
||
| 909 | * @param string|null $deliveryFreeAmount |
||
| 910 | * |
||
| 911 | * @return BaseInfo |
||
| 912 | */ |
||
| 913 | 19 | public function setDeliveryFreeAmount($deliveryFreeAmount = null) |
|
| 919 | |||
| 920 | /** |
||
| 921 | * Get deliveryFreeAmount. |
||
| 922 | * |
||
| 923 | * @return string|null |
||
| 924 | */ |
||
| 925 | 100 | public function getDeliveryFreeAmount() |
|
| 929 | |||
| 930 | /** |
||
| 931 | * Set deliveryFreeQuantity. |
||
| 932 | * |
||
| 933 | * @param int|null $deliveryFreeQuantity |
||
| 934 | * |
||
| 935 | * @return BaseInfo |
||
| 936 | */ |
||
| 937 | 19 | public function setDeliveryFreeQuantity($deliveryFreeQuantity = null) |
|
| 943 | |||
| 944 | /** |
||
| 945 | * Get deliveryFreeQuantity. |
||
| 946 | * |
||
| 947 | * @return int|null |
||
| 948 | */ |
||
| 949 | 100 | public function getDeliveryFreeQuantity() |
|
| 953 | |||
| 954 | /** |
||
| 955 | * Set optionMypageOrderStatusDisplay. |
||
| 956 | * |
||
| 957 | * @param boolean $optionMypageOrderStatusDisplay |
||
| 958 | * |
||
| 959 | * @return BaseInfo |
||
| 960 | */ |
||
| 961 | 8 | public function setOptionMypageOrderStatusDisplay($optionMypageOrderStatusDisplay) |
|
| 967 | |||
| 968 | /** |
||
| 969 | * Get optionMypageOrderStatusDisplay. |
||
| 970 | * |
||
| 971 | * @return boolean |
||
| 972 | */ |
||
| 973 | 9 | public function isOptionMypageOrderStatusDisplay() |
|
| 977 | |||
| 978 | /** |
||
| 979 | * Set optionNostockHidden. |
||
| 980 | * |
||
| 981 | * @param integer $optionNostockHidden |
||
| 982 | * |
||
| 983 | * @return BaseInfo |
||
| 984 | */ |
||
| 985 | public function setOptionNostockHidden($optionNostockHidden) |
||
| 991 | |||
| 992 | /** |
||
| 993 | * Get optionNostockHidden. |
||
| 994 | * |
||
| 995 | * @return boolean |
||
| 996 | */ |
||
| 997 | 9 | public function isOptionNostockHidden() |
|
| 1001 | |||
| 1002 | /** |
||
| 1003 | * Set optionFavoriteProduct. |
||
| 1004 | * |
||
| 1005 | * @param boolean $optionFavoriteProduct |
||
| 1006 | * |
||
| 1007 | * @return BaseInfo |
||
| 1008 | */ |
||
| 1009 | 11 | public function setOptionFavoriteProduct($optionFavoriteProduct) |
|
| 1015 | |||
| 1016 | /** |
||
| 1017 | * Get optionFavoriteProduct. |
||
| 1018 | * |
||
| 1019 | * @return boolean |
||
| 1020 | */ |
||
| 1021 | 122 | public function isOptionFavoriteProduct() |
|
| 1025 | |||
| 1026 | /** |
||
| 1027 | * Set optionProductDeliveryFee. |
||
| 1028 | * |
||
| 1029 | * @param boolean $optionProductDeliveryFee |
||
| 1030 | * |
||
| 1031 | * @return BaseInfo |
||
| 1032 | */ |
||
| 1033 | public function setOptionProductDeliveryFee($optionProductDeliveryFee) |
||
| 1039 | |||
| 1040 | /** |
||
| 1041 | * Get optionProductDeliveryFee. |
||
| 1042 | * |
||
| 1043 | * @return boolean |
||
| 1044 | */ |
||
| 1045 | 32 | public function isOptionProductDeliveryFee() |
|
| 1049 | |||
| 1050 | /** |
||
| 1051 | * Set optionProductTaxRule. |
||
| 1052 | * |
||
| 1053 | * @param boolean $optionProductTaxRule |
||
| 1054 | * |
||
| 1055 | * @return BaseInfo |
||
| 1056 | */ |
||
| 1057 | 42 | public function setOptionProductTaxRule($optionProductTaxRule) |
|
| 1063 | |||
| 1064 | /** |
||
| 1065 | * Get optionProductTaxRule. |
||
| 1066 | * |
||
| 1067 | * @return boolean |
||
| 1068 | */ |
||
| 1069 | 391 | public function isOptionProductTaxRule() |
|
| 1073 | |||
| 1074 | /** |
||
| 1075 | * Set optionCustomerActivate. |
||
| 1076 | * |
||
| 1077 | * @param boolean $optionCustomerActivate |
||
| 1078 | * |
||
| 1079 | * @return BaseInfo |
||
| 1080 | */ |
||
| 1081 | 9 | public function setOptionCustomerActivate($optionCustomerActivate) |
|
| 1087 | |||
| 1088 | /** |
||
| 1089 | * Get optionCustomerActivate. |
||
| 1090 | * |
||
| 1091 | * @return boolean |
||
| 1092 | */ |
||
| 1093 | 10 | public function isOptionCustomerActivate() |
|
| 1097 | |||
| 1098 | /** |
||
| 1099 | * Set optionRememberMe. |
||
| 1100 | * |
||
| 1101 | * @param boolean $optionRememberMe |
||
| 1102 | * |
||
| 1103 | * @return BaseInfo |
||
| 1104 | */ |
||
| 1105 | 8 | public function setOptionRememberMe($optionRememberMe) |
|
| 1111 | |||
| 1112 | /** |
||
| 1113 | * Get optionRememberMe. |
||
| 1114 | * |
||
| 1115 | * @return boolean |
||
| 1116 | */ |
||
| 1117 | 12 | public function isOptionRememberMe() |
|
| 1121 | |||
| 1122 | /** |
||
| 1123 | * Set authenticationKey. |
||
| 1124 | * |
||
| 1125 | * @param string|null $authenticationKey |
||
| 1126 | * |
||
| 1127 | * @return BaseInfo |
||
| 1128 | */ |
||
| 1129 | public function setAuthenticationKey($authenticationKey = null) |
||
| 1135 | |||
| 1136 | /** |
||
| 1137 | * Get authenticationKey. |
||
| 1138 | * |
||
| 1139 | * @return string|null |
||
| 1140 | */ |
||
| 1141 | public function getAuthenticationKey() |
||
| 1145 | |||
| 1146 | /** |
||
| 1147 | * Set country. |
||
| 1148 | * |
||
| 1149 | * @param \Eccube\Entity\Master\Country|null $country |
||
| 1150 | * |
||
| 1151 | * @return BaseInfo |
||
| 1152 | */ |
||
| 1153 | public function setCountry(\Eccube\Entity\Master\Country $country = null) |
||
| 1159 | |||
| 1160 | /** |
||
| 1161 | * Get country. |
||
| 1162 | * |
||
| 1163 | * @return \Eccube\Entity\Master\Country|null |
||
| 1164 | */ |
||
| 1165 | public function getCountry() |
||
| 1169 | |||
| 1170 | /** |
||
| 1171 | * Set pref. |
||
| 1172 | * |
||
| 1173 | * @param \Eccube\Entity\Master\Pref|null $pref |
||
| 1174 | * |
||
| 1175 | * @return BaseInfo |
||
| 1176 | */ |
||
| 1177 | public function setPref(\Eccube\Entity\Master\Pref $pref = null) |
||
| 1183 | |||
| 1184 | /** |
||
| 1185 | * Get pref. |
||
| 1186 | * |
||
| 1187 | * @return \Eccube\Entity\Master\Pref|null |
||
| 1188 | */ |
||
| 1189 | 10 | public function getPref() |
|
| 1193 | |||
| 1194 | /** |
||
| 1195 | * Set optionPoint |
||
| 1196 | * |
||
| 1197 | * @param boolean $optionPoint |
||
| 1198 | * |
||
| 1199 | * @return BaseInfo |
||
| 1200 | */ |
||
| 1201 | 8 | public function setOptionPoint($optionPoint) |
|
| 1207 | |||
| 1208 | /** |
||
| 1209 | * Get optionPoint |
||
| 1210 | * |
||
| 1211 | * @return boolean |
||
| 1212 | */ |
||
| 1213 | 56 | public function isOptionPoint() |
|
| 1217 | |||
| 1218 | /** |
||
| 1219 | * Set pointConversionRate |
||
| 1220 | * |
||
| 1221 | * @param string $pointConversionRate |
||
| 1222 | * |
||
| 1223 | * @return BaseInfo |
||
| 1224 | */ |
||
| 1225 | 11 | public function setPointConversionRate($pointConversionRate) |
|
| 1231 | |||
| 1232 | /** |
||
| 1233 | * Get pointConversionRate |
||
| 1234 | * |
||
| 1235 | * @return string |
||
| 1236 | */ |
||
| 1237 | 11 | public function getPointConversionRate() |
|
| 1241 | |||
| 1242 | /** |
||
| 1243 | * Set basicPointRate |
||
| 1244 | * |
||
| 1245 | * @param string $basicPointRate |
||
| 1246 | * |
||
| 1247 | * @return BaseInfo |
||
| 1248 | */ |
||
| 1249 | 11 | public function setBasicPointRate($basicPointRate) |
|
| 1255 | |||
| 1256 | /** |
||
| 1257 | * Get basicPointRate |
||
| 1258 | * |
||
| 1259 | * @return string |
||
| 1260 | */ |
||
| 1261 | 197 | public function getBasicPointRate() |
|
| 1265 | } |
||
| 1266 |
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.