src/Eccube/Entity/Customer.php line 22

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of EC-CUBE
  4.  *
  5.  * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  6.  *
  7.  * http://www.ec-cube.co.jp/
  8.  *
  9.  * For the full copyright and license information, please view the LICENSE
  10.  * file that was distributed with this source code.
  11.  */
  12. namespace Eccube\Entity;
  13. use Doctrine\ORM\Mapping as ORM;
  14. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  15. use Symfony\Component\Security\Core\User\UserInterface;
  16. use Symfony\Component\Validator\Constraints as Assert;
  17. use Symfony\Component\Validator\Mapping\ClassMetadata;
  18. if (!class_exists('\Eccube\Entity\Customer')) {
  19.     /**
  20.      * Customer
  21.      *
  22.      * @ORM\Table(name="dtb_customer", uniqueConstraints={@ORM\UniqueConstraint(name="secret_key", columns={"secret_key"})}, indexes={@ORM\Index(name="dtb_customer_buy_times_idx", columns={"buy_times"}), @ORM\Index(name="dtb_customer_buy_total_idx", columns={"buy_total"}), @ORM\Index(name="dtb_customer_create_date_idx", columns={"create_date"}), @ORM\Index(name="dtb_customer_update_date_idx", columns={"update_date"}), @ORM\Index(name="dtb_customer_last_buy_date_idx", columns={"last_buy_date"}), @ORM\Index(name="dtb_customer_email_idx", columns={"email"})})
  23.      * @ORM\InheritanceType("SINGLE_TABLE")
  24.      * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  25.      * @ORM\HasLifecycleCallbacks()
  26.      * @ORM\Entity(repositoryClass="Eccube\Repository\CustomerRepository")
  27.      */
  28.     class Customer extends \Eccube\Entity\AbstractEntity implements UserInterface\Serializable
  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.          * @var string
  40.          *
  41.          * @ORM\Column(name="name01", type="string", length=255)
  42.          */
  43.         private $name01;
  44.         /**
  45.          * @var string
  46.          *
  47.          * @ORM\Column(name="name02", type="string", length=255)
  48.          */
  49.         private $name02;
  50.         /**
  51.          * @var string|null
  52.          *
  53.          * @ORM\Column(name="kana01", type="string", length=255, nullable=true)
  54.          */
  55.         private $kana01;
  56.         /**
  57.          * @var string|null
  58.          *
  59.          * @ORM\Column(name="kana02", type="string", length=255, nullable=true)
  60.          */
  61.         private $kana02;
  62.         /**
  63.          * @var string|null
  64.          *
  65.          * @ORM\Column(name="company_name", type="string", length=255, nullable=false)
  66.          */
  67.         private $company_name;
  68.         /**
  69.          * @var string|null
  70.          *
  71.          * @ORM\Column(name="representative_name_kana", type="string", length=255, nullable=false)
  72.          */
  73.         private $representative_name_kana;
  74.         /**
  75.          * @var string|null
  76.          *
  77.          * @ORM\Column(name="postal_code", type="string", length=8, nullable=true)
  78.          */
  79.         private $postal_code;
  80.         /**
  81.          * @var string|null
  82.          *
  83.          * @ORM\Column(name="addr01", type="string", length=255, nullable=true)
  84.          */
  85.         private $addr01;
  86.         /**
  87.          * @var string|null
  88.          *
  89.          * @ORM\Column(name="addr02", type="string", length=255, nullable=true)
  90.          */
  91.         private $addr02;
  92.         /**
  93.          * @var string
  94.          *
  95.          * @ORM\Column(name="email", type="string", length=255)
  96.          */
  97.         private $email;
  98.         /**
  99.          * @var string|null
  100.          *
  101.          * @ORM\Column(name="phone_number", type="string", length=14, nullable=true)
  102.          */
  103.         private $phone_number;
  104.         /**
  105.          * @var \DateTime|null
  106.          *
  107.          * @ORM\Column(name="birth", type="datetimetz", nullable=true)
  108.          */
  109.         private $birth;
  110.         /**
  111.          * @Assert\NotBlank()
  112.          * @Assert\Length(max=4096)
  113.          */
  114.         private $plain_password;
  115.         /**
  116.          * @var string|null
  117.          *
  118.          * @ORM\Column(name="password", type="string", length=255)
  119.          */
  120.         private $password;
  121.         /**
  122.          * @var string|null
  123.          *
  124.          * @ORM\Column(name="salt", type="string", length=255, nullable=true)
  125.          */
  126.         private $salt;
  127.         /**
  128.          * @var string
  129.          *
  130.          * @ORM\Column(name="secret_key", type="string", length=255)
  131.          */
  132.         private $secret_key;
  133.         /**
  134.          * @var \DateTime|null
  135.          *
  136.          * @ORM\Column(name="first_buy_date", type="datetimetz", nullable=true)
  137.          */
  138.         private $first_buy_date;
  139.         /**
  140.          * @var \DateTime|null
  141.          *
  142.          * @ORM\Column(name="last_buy_date", type="datetimetz", nullable=true)
  143.          */
  144.         private $last_buy_date;
  145.         /**
  146.          * @var string|null
  147.          *
  148.          * @ORM\Column(name="buy_times", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0})
  149.          */
  150.         private $buy_times 0;
  151.         /**
  152.          * @var string|null
  153.          *
  154.          * @ORM\Column(name="buy_total", type="decimal", precision=12, scale=2, nullable=true, options={"unsigned":true,"default":0})
  155.          */
  156.         private $buy_total 0;
  157.         /**
  158.          * @var string|null
  159.          *
  160.          * @ORM\Column(name="note", type="string", length=4000, nullable=true)
  161.          */
  162.         private $note;
  163.         /**
  164.          * @var string|null
  165.          *
  166.          * @ORM\Column(name="reset_key", type="string", length=255, nullable=true)
  167.          */
  168.         private $reset_key;
  169.         /**
  170.          * @var \DateTime|null
  171.          *
  172.          * @ORM\Column(name="reset_expire", type="datetimetz", nullable=true)
  173.          */
  174.         private $reset_expire;
  175.         /**
  176.          * @var string
  177.          *
  178.          * @ORM\Column(name="point", type="decimal", precision=12, scale=0, options={"unsigned":false,"default":0})
  179.          */
  180.         private $point '0';
  181.         /**
  182.          * @var \DateTime
  183.          *
  184.          * @ORM\Column(name="create_date", type="datetimetz")
  185.          */
  186.         private $create_date;
  187.         /**
  188.          * @var \DateTime
  189.          *
  190.          * @ORM\Column(name="update_date", type="datetimetz")
  191.          */
  192.         private $update_date;
  193.         /**
  194.          * @var \Doctrine\Common\Collections\Collection
  195.          *
  196.          * @ORM\OneToMany(targetEntity="Eccube\Entity\CustomerFavoriteProduct", mappedBy="Customer", cascade={"remove"})
  197.          */
  198.         private $CustomerFavoriteProducts;
  199.         /**
  200.          * @var \Doctrine\Common\Collections\Collection
  201.          *
  202.          * @ORM\OneToMany(targetEntity="Eccube\Entity\CustomerAddress", mappedBy="Customer", cascade={"remove"})
  203.          * @ORM\OrderBy({
  204.          *     "id"="ASC"
  205.          * })
  206.          */
  207.         private $CustomerAddresses;
  208.         /**
  209.          * @var \Doctrine\Common\Collections\Collection
  210.          *
  211.          * @ORM\OneToMany(targetEntity="Eccube\Entity\Order", mappedBy="Customer")
  212.          */
  213.         private $Orders;
  214.         /**
  215.          * @var \Eccube\Entity\Master\CustomerStatus
  216.          *
  217.          * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\CustomerStatus")
  218.          * @ORM\JoinColumns({
  219.          *   @ORM\JoinColumn(name="customer_status_id", referencedColumnName="id")
  220.          * })
  221.          */
  222.         private $Status;
  223.         /**
  224.          * @var \Eccube\Entity\Master\Sex
  225.          *
  226.          * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Sex")
  227.          * @ORM\JoinColumns({
  228.          *   @ORM\JoinColumn(name="sex_id", referencedColumnName="id")
  229.          * })
  230.          */
  231.         private $Sex;
  232.         /**
  233.          * @var \Eccube\Entity\Master\Job
  234.          *
  235.          * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Job")
  236.          * @ORM\JoinColumns({
  237.          *   @ORM\JoinColumn(name="job_id", referencedColumnName="id")
  238.          * })
  239.          */
  240.         private $Job;
  241.         /**
  242.          * @var \Eccube\Entity\Master\Country
  243.          *
  244.          * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Country")
  245.          * @ORM\JoinColumns({
  246.          *   @ORM\JoinColumn(name="country_id", referencedColumnName="id")
  247.          * })
  248.          */
  249.         private $Country;
  250.         /**
  251.          * @var \Eccube\Entity\Master\Pref
  252.          *
  253.          * @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Pref")
  254.          * @ORM\JoinColumns({
  255.          *   @ORM\JoinColumn(name="pref_id", referencedColumnName="id")
  256.          * })
  257.          */
  258.         private $Pref;
  259.         // 追加されたカラム
  260.         /**
  261.          * @var string|null
  262.          *
  263.          * @ORM\Column(name="member_rank", type="string", length=255, nullable=true, options={"default" : "ランクなし"})
  264.          */
  265.         private $member_rank;
  266.         /**
  267.          * @var string|null
  268.          *
  269.          * @ORM\Column(name="amount_category", type="string", length=255, nullable=true, options={"default" : "指定なし"})
  270.          */
  271.         private $amount_category;
  272.         /**
  273.          * @var string|null
  274.          *
  275.          * @ORM\Column(name="holiday", type="string", length=255, nullable=true)
  276.          */
  277.         private $holiday;
  278.         /**
  279.          * @var string|null
  280.          *
  281.          * @ORM\Column(name="main_contact_name", type="string", length=255, nullable=false)
  282.          */
  283.         private $main_contact_name;
  284.         /**
  285.          * @var string|null
  286.          *
  287.          * @ORM\Column(name="main_contact_kana", type="string", length=255, nullable=false)
  288.          */
  289.         private $main_contact_kana;
  290.         /**
  291.          * @var string|null
  292.          *
  293.          * @ORM\Column(name="main_contact_email", type="string", length=255, nullable=false)
  294.          */
  295.         private $main_contact_email;
  296.         /**
  297.          * @var string|null
  298.          *
  299.          * @ORM\Column(name="main_contact_phone", type="string", length=14, nullable=false)
  300.          */
  301.         private $main_contact_phone;
  302.         /**
  303.          * @var string|null
  304.          *
  305.          * @ORM\Column(name="fax", type="string", length=15, nullable=true)
  306.          */
  307.         private $fax;
  308.         /**
  309.          * @var string|null
  310.          *
  311.          * @ORM\Column(name="join_year", type="string", length=4, nullable=true)
  312.          */
  313.         private $join_year;
  314.         /**
  315.          * @var string|null
  316.          *
  317.          * @ORM\Column(name="join_month", type="string", length=2, nullable=true)
  318.          */
  319.         private $join_month;
  320.         /**
  321.          * @var string|null
  322.          *
  323.          * @ORM\Column(name="mail_magazine_type", type="string", length=255, nullable=true, options={"default" : "希望しない"})
  324.          */
  325.         private $mail_magazine_type;
  326.         /**
  327.          * @var string|null
  328.          *
  329.          * @ORM\Column(name="contact1_last_name", type="string", length=255, nullable=true)
  330.          */
  331.         private $contact1_last_name;
  332.         /**
  333.          * @var string|null
  334.          *
  335.          * @ORM\Column(name="contact1_first_name", type="string", length=255, nullable=true)
  336.          */
  337.         private $contact1_first_name;
  338.         /**
  339.          * @var string|null
  340.          *
  341.          * @ORM\Column(name="contact1_last_name_kana", type="string", length=255, nullable=true)
  342.          */
  343.         private $contact1_last_name_kana;
  344.         /**
  345.          * @var string|null
  346.          *
  347.          * @ORM\Column(name="contact1_first_name_kana", type="string", length=255, nullable=true)
  348.          */
  349.         private $contact1_first_name_kana;
  350.         /**
  351.          * @var string|null
  352.          *
  353.          * @ORM\Column(name="contact1_email", type="string", length=255, nullable=true)
  354.          */
  355.         private $contact1_email;
  356.         /**
  357.          * @var string|null
  358.          *
  359.          * @ORM\Column(name="contact1_phone", type="string", length=14, nullable=true)
  360.          */
  361.         private $contact1_phone;
  362.         /**
  363.          * @var string|null
  364.          *
  365.          * @ORM\Column(name="contact2_last_name", type="string", length=255, nullable=true)
  366.          */
  367.         private $contact2_last_name;
  368.         /**
  369.          * @var string|null
  370.          *
  371.          * @ORM\Column(name="contact2_first_name", type="string", length=255, nullable=true)
  372.          */
  373.         private $contact2_first_name;
  374.         /**
  375.          * @var string|null
  376.          *
  377.          * @ORM\Column(name="contact2_last_name_kana", type="string", length=255, nullable=true)
  378.          */
  379.         private $contact2_last_name_kana;
  380.         /**
  381.          * @var string|null
  382.          *
  383.          * @ORM\Column(name="contact2_first_name_kana", type="string", length=255, nullable=true)
  384.          */
  385.         private $contact2_first_name_kana;
  386.         /**
  387.          * @var string|null
  388.          *
  389.          * @ORM\Column(name="contact2_email", type="string", length=255, nullable=true)
  390.          */
  391.         private $contact2_email;
  392.         /**
  393.          * @var string|null
  394.          *
  395.          * @ORM\Column(name="contact2_phone", type="string", length=14, nullable=true)
  396.          */
  397.         private $contact2_phone;
  398.         /**
  399.          * @var string|null
  400.          *
  401.          * @ORM\Column(name="contact3_last_name", type="string", length=255, nullable=true)
  402.          */
  403.         private $contact3_last_name;
  404.         /**
  405.          * @var string|null
  406.          *
  407.          * @ORM\Column(name="contact3_first_name", type="string", length=255, nullable=true)
  408.          */
  409.         private $contact3_first_name;
  410.         /**
  411.          * @var string|null
  412.          *
  413.          * @ORM\Column(name="contact3_last_name_kana", type="string", length=255, nullable=true)
  414.          */
  415.         private $contact3_last_name_kana;
  416.         /**
  417.          * @var string|null
  418.          *
  419.          * @ORM\Column(name="contact3_first_name_kana", type="string", length=255, nullable=true)
  420.          */
  421.         private $contact3_first_name_kana;
  422.         /**
  423.          * @var string|null
  424.          *
  425.          * @ORM\Column(name="contact3_email", type="string", length=255, nullable=true)
  426.          */
  427.         private $contact3_email;
  428.         /**
  429.          * @var string|null
  430.          *
  431.          * @ORM\Column(name="contact3_phone", type="string", length=14, nullable=true)
  432.          */
  433.         private $contact3_phone;
  434.         // contact4〜contact10 も同様に追加する
  435.         /**
  436.          * @var string|null
  437.          *
  438.          * @ORM\Column(name="contact4_last_name", type="string", length=255, nullable=true)
  439.          */
  440.         private $contact4_last_name;
  441.         /**
  442.          * @var string|null
  443.          *
  444.          * @ORM\Column(name="contact4_first_name", type="string", length=255, nullable=true)
  445.          */
  446.         private $contact4_first_name;
  447.         /**
  448.          * @var string|null
  449.          *
  450.          * @ORM\Column(name="contact4_last_name_kana", type="string", length=255, nullable=true)
  451.          */
  452.         private $contact4_last_name_kana;
  453.         /**
  454.          * @var string|null
  455.          *
  456.          * @ORM\Column(name="contact4_first_name_kana", type="string", length=255, nullable=true)
  457.          */
  458.         private $contact4_first_name_kana;
  459.         /**
  460.          * @var string|null
  461.          *
  462.          * @ORM\Column(name="contact4_email", type="string", length=255, nullable=true)
  463.          */
  464.         private $contact4_email;
  465.         /**
  466.          * @var string|null
  467.          *
  468.          * @ORM\Column(name="contact4_phone", type="string", length=14, nullable=true)
  469.          */
  470.         private $contact4_phone;
  471.         /**
  472.          * @var string|null
  473.          *
  474.          * @ORM\Column(name="contact5_last_name", type="string", length=255, nullable=true)
  475.          */
  476.         private $contact5_last_name;
  477.         /**
  478.          * @var string|null
  479.          *
  480.          * @ORM\Column(name="contact5_first_name", type="string", length=255, nullable=true)
  481.          */
  482.         private $contact5_first_name;
  483.         /**
  484.          * @var string|null
  485.          *
  486.          * @ORM\Column(name="contact5_last_name_kana", type="string", length=255, nullable=true)
  487.          */
  488.         private $contact5_last_name_kana;
  489.         /**
  490.          * @var string|null
  491.          *
  492.          * @ORM\Column(name="contact5_first_name_kana", type="string", length=255, nullable=true)
  493.          */
  494.         private $contact5_first_name_kana;
  495.         /**
  496.          * @var string|null
  497.          *
  498.          * @ORM\Column(name="contact5_email", type="string", length=255, nullable=true)
  499.          */
  500.         private $contact5_email;
  501.         /**
  502.          * @var string|null
  503.          *
  504.          * @ORM\Column(name="contact5_phone", type="string", length=14, nullable=true)
  505.          */
  506.         private $contact5_phone;
  507.         /**
  508.          * @var string|null
  509.          *
  510.          * @ORM\Column(name="contact6_last_name", type="string", length=255, nullable=true)
  511.          */
  512.         private $contact6_last_name;
  513.         /**
  514.          * @var string|null
  515.          *
  516.          * @ORM\Column(name="contact6_first_name", type="string", length=255, nullable=true)
  517.          */
  518.         private $contact6_first_name;
  519.         /**
  520.          * @var string|null
  521.          *
  522.          * @ORM\Column(name="contact6_last_name_kana", type="string", length=255, nullable=true)
  523.          */
  524.         private $contact6_last_name_kana;
  525.         /**
  526.          * @var string|null
  527.          *
  528.          * @ORM\Column(name="contact6_first_name_kana", type="string", length=255, nullable=true)
  529.          */
  530.         private $contact6_first_name_kana;
  531.         /**
  532.          * @var string|null
  533.          *
  534.          * @ORM\Column(name="contact6_email", type="string", length=255, nullable=true)
  535.          */
  536.         private $contact6_email;
  537.         /**
  538.          * @var string|null
  539.          *
  540.          * @ORM\Column(name="contact6_phone", type="string", length=14, nullable=true)
  541.          */
  542.         private $contact6_phone;
  543.         /**
  544.          * @var string|null
  545.          *
  546.          * @ORM\Column(name="contact7_last_name", type="string", length=255, nullable=true)
  547.          */
  548.         private $contact7_last_name;
  549.         /**
  550.          * @var string|null
  551.          *
  552.          * @ORM\Column(name="contact7_first_name", type="string", length=255, nullable=true)
  553.          */
  554.         private $contact7_first_name;
  555.         /**
  556.          * @var string|null
  557.          *
  558.          * @ORM\Column(name="contact7_last_name_kana", type="string", length=255, nullable=true)
  559.          */
  560.         private $contact7_last_name_kana;
  561.         /**
  562.          * @var string|null
  563.          *
  564.          * @ORM\Column(name="contact7_first_name_kana", type="string", length=255, nullable=true)
  565.          */
  566.         private $contact7_first_name_kana;
  567.         /**
  568.          * @var string|null
  569.          *
  570.          * @ORM\Column(name="contact7_email", type="string", length=255, nullable=true)
  571.          */
  572.         private $contact7_email;
  573.         /**
  574.          * @var string|null
  575.          *
  576.          * @ORM\Column(name="contact7_phone", type="string", length=14, nullable=true)
  577.          */
  578.         private $contact7_phone;
  579.         /**
  580.          * @var string|null
  581.          *
  582.          * @ORM\Column(name="contact8_last_name", type="string", length=255, nullable=true)
  583.          */
  584.         private $contact8_last_name;
  585.         /**
  586.          * @var string|null
  587.          *
  588.          * @ORM\Column(name="contact8_first_name", type="string", length=255, nullable=true)
  589.          */
  590.         private $contact8_first_name;
  591.         /**
  592.          * @var string|null
  593.          *
  594.          * @ORM\Column(name="contact8_last_name_kana", type="string", length=255, nullable=true)
  595.          */
  596.         private $contact8_last_name_kana;
  597.         /**
  598.          * @var string|null
  599.          *
  600.          * @ORM\Column(name="contact8_first_name_kana", type="string", length=255, nullable=true)
  601.          */
  602.         private $contact8_first_name_kana;
  603.         /**
  604.          * @var string|null
  605.          *
  606.          * @ORM\Column(name="contact8_email", type="string", length=255, nullable=true)
  607.          */
  608.         private $contact8_email;
  609.         /**
  610.          * @var string|null
  611.          *
  612.          * @ORM\Column(name="contact8_phone", type="string", length=14, nullable=true)
  613.          */
  614.         private $contact8_phone;
  615.         /**
  616.          * @var string|null
  617.          *
  618.          * @ORM\Column(name="contact9_last_name", type="string", length=255, nullable=true)
  619.          */
  620.         private $contact9_last_name;
  621.         /**
  622.          * @var string|null
  623.          *
  624.          * @ORM\Column(name="contact9_first_name", type="string", length=255, nullable=true)
  625.          */
  626.         private $contact9_first_name;
  627.         /**
  628.          * @var string|null
  629.          *
  630.          * @ORM\Column(name="contact9_last_name_kana", type="string", length=255, nullable=true)
  631.          */
  632.         private $contact9_last_name_kana;
  633.         /**
  634.          * @var string|null
  635.          *
  636.          * @ORM\Column(name="contact9_first_name_kana", type="string", length=255, nullable=true)
  637.          */
  638.         private $contact9_first_name_kana;
  639.         /**
  640.          * @var string|null
  641.          *
  642.          * @ORM\Column(name="contact9_email", type="string", length=255, nullable=true)
  643.          */
  644.         private $contact9_email;
  645.         /**
  646.          * @var string|null
  647.          *
  648.          * @ORM\Column(name="contact9_phone", type="string", length=14, nullable=true)
  649.          */
  650.         private $contact9_phone;
  651.         /**
  652.          * @var string|null
  653.          *
  654.          * @ORM\Column(name="contact10_last_name", type="string", length=255, nullable=true)
  655.          */
  656.         private $contact10_last_name;
  657.         /**
  658.          * @var string|null
  659.          *
  660.          * @ORM\Column(name="contact10_first_name", type="string", length=255, nullable=true)
  661.          */
  662.         private $contact10_first_name;
  663.         /**
  664.          * @var string|null
  665.          *
  666.          * @ORM\Column(name="contact10_last_name_kana", type="string", length=255, nullable=true)
  667.          */
  668.         private $contact10_last_name_kana;
  669.         /**
  670.          * @var string|null
  671.          *
  672.          * @ORM\Column(name="contact10_first_name_kana", type="string", length=255, nullable=true)
  673.          */
  674.         private $contact10_first_name_kana;
  675.         /**
  676.          * @var string|null
  677.          *
  678.          * @ORM\Column(name="contact10_email", type="string", length=255, nullable=true)
  679.          */
  680.         private $contact10_email;
  681.         /**
  682.          * @var string|null
  683.          *
  684.          * @ORM\Column(name="contact10_phone", type="string", length=14, nullable=true)
  685.          */
  686.         private $contact10_phone;
  687.         /**
  688.          * Constructor
  689.          */
  690.         public function __construct()
  691.         {
  692.             $this->CustomerFavoriteProducts = new \Doctrine\Common\Collections\ArrayCollection();
  693.             $this->CustomerAddresses = new \Doctrine\Common\Collections\ArrayCollection();
  694.             $this->Orders = new \Doctrine\Common\Collections\ArrayCollection();
  695.             $this->setBuyTimes(0);
  696.             $this->setBuyTotal(0);
  697.         }
  698.         /**
  699.          * @return string
  700.          */
  701.         public function __toString()
  702.         {
  703.             return (string) ($this->getName01().' '.$this->getName02());
  704.         }
  705.         /**
  706.          * {@inheritdoc}
  707.          */
  708.         public function getRoles()
  709.         {
  710.             return ['ROLE_USER'];
  711.         }
  712.         /**
  713.          * {@inheritdoc}
  714.          */
  715.         public function getUsername()
  716.         {
  717.             return $this->email;
  718.         }
  719.         /**
  720.          * {@inheritdoc}
  721.          */
  722.         public function eraseCredentials()
  723.         {
  724.         }
  725.         // TODO: できればFormTypeで行いたい
  726.         public static function loadValidatorMetadata(ClassMetadata $metadata)
  727.         {
  728.             $metadata->addConstraint(new UniqueEntity([
  729.                 'fields' => 'email',
  730.                 'message' => 'form_error.customer_already_exists',
  731.                 'repositoryMethod' => 'getNonWithdrawingCustomers',
  732.             ]));
  733.         }
  734.         /**
  735.          * Get id.
  736.          *
  737.          * @return int
  738.          */
  739.         public function getId()
  740.         {
  741.             return $this->id;
  742.         }
  743.         /**
  744.          * Set name01.
  745.          *
  746.          * @param string $name01
  747.          *
  748.          * @return Customer
  749.          */
  750.         public function setName01($name01)
  751.         {
  752.             $this->name01 $name01;
  753.             return $this;
  754.         }
  755.         /**
  756.          * Get name01.
  757.          *
  758.          * @return string
  759.          */
  760.         public function getName01()
  761.         {
  762.             return $this->name01;
  763.         }
  764.         /**
  765.          * Set name02.
  766.          *
  767.          * @param string $name02
  768.          *
  769.          * @return Customer
  770.          */
  771.         public function setName02($name02)
  772.         {
  773.             $this->name02 $name02;
  774.             return $this;
  775.         }
  776.         /**
  777.          * Get name02.
  778.          *
  779.          * @return string
  780.          */
  781.         public function getName02()
  782.         {
  783.             return $this->name02;
  784.         }
  785.         public function getContactName()
  786.         {
  787.             return $this->name02;
  788.         }
  789.         /**
  790.          * Set kana01.
  791.          *
  792.          * @param string|null $kana01
  793.          *
  794.          * @return Customer
  795.          */
  796.         public function setKana01($kana01 null)
  797.         {
  798.             $this->kana01 $kana01;
  799.             return $this;
  800.         }
  801.         /**
  802.          * Get kana01.
  803.          *
  804.          * @return string|null
  805.          */
  806.         public function getKana01()
  807.         {
  808.             return $this->kana01;
  809.         }
  810.         public function getContactNameKana()
  811.         {
  812.             return $this->kana02;
  813.         }
  814.         /**
  815.          * Set kana02.
  816.          *
  817.          * @param string|null $kana02
  818.          *
  819.          * @return Customer
  820.          */
  821.         public function setKana02($kana02 null)
  822.         {
  823.             $this->kana02 $kana02;
  824.             return $this;
  825.         }
  826.         /**
  827.          * Get kana02.
  828.          *
  829.          * @return string|null
  830.          */
  831.         public function getKana02()
  832.         {
  833.             return $this->kana02;
  834.         }
  835.         /**
  836.          * Set companyName.
  837.          *
  838.          * @param string|null $companyName
  839.          *
  840.          * @return Customer
  841.          */
  842.         public function setCompanyName($companyName null)
  843.         {
  844.             $this->company_name $companyName;
  845.             return $this;
  846.         }
  847.         /**
  848.          * Get companyName.
  849.          *
  850.          * @return string|null
  851.          */
  852.         public function getCompanyName()
  853.         {
  854.             return $this->company_name;
  855.         }
  856.         /**
  857.          * Set representativeNameKana
  858.          *
  859.          * @param string|null $representativeNameKana
  860.          *
  861.          * @return Customer
  862.          */
  863.         public function setRepresentativeNameKana($representativeNameKana null)
  864.         {
  865.             $this->representative_name_kana $representativeNameKana;
  866.             return $this;
  867.         }
  868.         /**
  869.          * Get representativeNameKana
  870.          *
  871.          * @return string|null
  872.          */
  873.         public function getRepresentativeNameKana()
  874.         {
  875.             return $this->representative_name_kana;
  876.         }
  877.         /**
  878.          * Set postal_code.
  879.          *
  880.          * @param string|null $postal_code
  881.          *
  882.          * @return Customer
  883.          */
  884.         public function setPostalCode($postal_code null)
  885.         {
  886.             $this->postal_code $postal_code;
  887.             return $this;
  888.         }
  889.         /**
  890.          * Get postal_code.
  891.          *
  892.          * @return string|null
  893.          */
  894.         public function getPostalCode()
  895.         {
  896.             return $this->postal_code;
  897.         }
  898.         /**
  899.          * Set addr01.
  900.          *
  901.          * @param string|null $addr01
  902.          *
  903.          * @return Customer
  904.          */
  905.         public function setAddr01($addr01 null)
  906.         {
  907.             $this->addr01 $addr01;
  908.             return $this;
  909.         }
  910.         /**
  911.          * Get addr01.
  912.          *
  913.          * @return string|null
  914.          */
  915.         public function getAddr01()
  916.         {
  917.             return $this->addr01;
  918.         }
  919.         /**
  920.          * Set addr02.
  921.          *
  922.          * @param string|null $addr02
  923.          *
  924.          * @return Customer
  925.          */
  926.         public function setAddr02($addr02 null)
  927.         {
  928.             $this->addr02 $addr02;
  929.             return $this;
  930.         }
  931.         /**
  932.          * Get addr02.
  933.          *
  934.          * @return string|null
  935.          */
  936.         public function getAddr02()
  937.         {
  938.             return $this->addr02;
  939.         }
  940.         /**
  941.          * Set email.
  942.          *
  943.          * @param string $email
  944.          *
  945.          * @return Customer
  946.          */
  947.         public function setEmail($email)
  948.         {
  949.             $this->email $email;
  950.             return $this;
  951.         }
  952.         /**
  953.          * Get email.
  954.          *
  955.          * @return string
  956.          */
  957.         public function getEmail()
  958.         {
  959.             return $this->email;
  960.         }
  961.         function getContactEmail()
  962.         {
  963.             return $this->email;
  964.         }
  965.         /**
  966.          * Set phone_number.
  967.          *
  968.          * @param string|null $phone_number
  969.          *
  970.          * @return Customer
  971.          */
  972.         public function setPhoneNumber($phone_number null)
  973.         {
  974.             $this->phone_number $phone_number;
  975.             return $this;
  976.         }
  977.         /**
  978.          * Get phone_number.
  979.          *
  980.          * @return string|null
  981.          */
  982.         public function getPhoneNumber()
  983.         {
  984.             return $this->phone_number;
  985.         }
  986.         function getContactMobile()
  987.         {
  988.             return $this->phone_number;
  989.         }
  990.         /**
  991.          * Set birth.
  992.          *
  993.          * @param \DateTime|null $birth
  994.          *
  995.          * @return Customer
  996.          */
  997.         public function setBirth($birth null)
  998.         {
  999.             $this->birth $birth;
  1000.             return $this;
  1001.         }
  1002.         /**
  1003.          * Get birth.
  1004.          *
  1005.          * @return \DateTime|null
  1006.          */
  1007.         public function getBirth()
  1008.         {
  1009.             return $this->birth;
  1010.         }
  1011.         /**
  1012.          * @param string|null $password
  1013.          *
  1014.          * @return $this
  1015.          */
  1016.         public function setPlainPassword(?string $password): self
  1017.         {
  1018.             $this->plain_password $password;
  1019.             return $this;
  1020.         }
  1021.         /**
  1022.          * @return string|null
  1023.          */
  1024.         public function getPlainPassword(): ?string
  1025.         {
  1026.             return $this->plain_password;
  1027.         }
  1028.         /**
  1029.          * Set password.
  1030.          *
  1031.          * @param string|null $password
  1032.          *
  1033.          * @return Customer
  1034.          */
  1035.         public function setPassword($password null)
  1036.         {
  1037.             $this->password $password;
  1038.             return $this;
  1039.         }
  1040.         /**
  1041.          * Get password.
  1042.          *
  1043.          * @return string|null
  1044.          */
  1045.         public function getPassword()
  1046.         {
  1047.             return $this->password;
  1048.         }
  1049.         /**
  1050.          * Set salt.
  1051.          *
  1052.          * @param string|null $salt
  1053.          *
  1054.          * @return Customer
  1055.          */
  1056.         public function setSalt($salt null)
  1057.         {
  1058.             $this->salt $salt;
  1059.             return $this;
  1060.         }
  1061.         /**
  1062.          * Get salt.
  1063.          *
  1064.          * @return string|null
  1065.          */
  1066.         public function getSalt()
  1067.         {
  1068.             return $this->salt;
  1069.         }
  1070.         /**
  1071.          * Set secretKey.
  1072.          *
  1073.          * @param string $secretKey
  1074.          *
  1075.          * @return Customer
  1076.          */
  1077.         public function setSecretKey($secretKey)
  1078.         {
  1079.             $this->secret_key $secretKey;
  1080.             return $this;
  1081.         }
  1082.         /**
  1083.          * Get secretKey.
  1084.          *
  1085.          * @return string
  1086.          */
  1087.         public function getSecretKey()
  1088.         {
  1089.             return $this->secret_key;
  1090.         }
  1091.         /**
  1092.          * Set firstBuyDate.
  1093.          *
  1094.          * @param \DateTime|null $firstBuyDate
  1095.          *
  1096.          * @return Customer
  1097.          */
  1098.         public function setFirstBuyDate($firstBuyDate null)
  1099.         {
  1100.             $this->first_buy_date $firstBuyDate;
  1101.             return $this;
  1102.         }
  1103.         /**
  1104.          * Get firstBuyDate.
  1105.          *
  1106.          * @return \DateTime|null
  1107.          */
  1108.         public function getFirstBuyDate()
  1109.         {
  1110.             return $this->first_buy_date;
  1111.         }
  1112.         /**
  1113.          * Set lastBuyDate.
  1114.          *
  1115.          * @param \DateTime|null $lastBuyDate
  1116.          *
  1117.          * @return Customer
  1118.          */
  1119.         public function setLastBuyDate($lastBuyDate null)
  1120.         {
  1121.             $this->last_buy_date $lastBuyDate;
  1122.             return $this;
  1123.         }
  1124.         /**
  1125.          * Get lastBuyDate.
  1126.          *
  1127.          * @return \DateTime|null
  1128.          */
  1129.         public function getLastBuyDate()
  1130.         {
  1131.             return $this->last_buy_date;
  1132.         }
  1133.         /**
  1134.          * Set buyTimes.
  1135.          *
  1136.          * @param string|null $buyTimes
  1137.          *
  1138.          * @return Customer
  1139.          */
  1140.         public function setBuyTimes($buyTimes null)
  1141.         {
  1142.             $this->buy_times $buyTimes;
  1143.             return $this;
  1144.         }
  1145.         /**
  1146.          * Get buyTimes.
  1147.          *
  1148.          * @return string|null
  1149.          */
  1150.         public function getBuyTimes()
  1151.         {
  1152.             return $this->buy_times;
  1153.         }
  1154.         /**
  1155.          * Set buyTotal.
  1156.          *
  1157.          * @param string|null $buyTotal
  1158.          *
  1159.          * @return Customer
  1160.          */
  1161.         public function setBuyTotal($buyTotal null)
  1162.         {
  1163.             $this->buy_total $buyTotal;
  1164.             return $this;
  1165.         }
  1166.         /**
  1167.          * Get buyTotal.
  1168.          *
  1169.          * @return string|null
  1170.          */
  1171.         public function getBuyTotal()
  1172.         {
  1173.             return $this->buy_total;
  1174.         }
  1175.         /**
  1176.          * Set note.
  1177.          *
  1178.          * @param string|null $note
  1179.          *
  1180.          * @return Customer
  1181.          */
  1182.         public function setNote($note null)
  1183.         {
  1184.             $this->note $note;
  1185.             return $this;
  1186.         }
  1187.         /**
  1188.          * Get note.
  1189.          *
  1190.          * @return string|null
  1191.          */
  1192.         public function getNote()
  1193.         {
  1194.             return $this->note;
  1195.         }
  1196.         /**
  1197.          * Set resetKey.
  1198.          *
  1199.          * @param string|null $resetKey
  1200.          *
  1201.          * @return Customer
  1202.          */
  1203.         public function setResetKey($resetKey null)
  1204.         {
  1205.             $this->reset_key $resetKey;
  1206.             return $this;
  1207.         }
  1208.         /**
  1209.          * Get resetKey.
  1210.          *
  1211.          * @return string|null
  1212.          */
  1213.         public function getResetKey()
  1214.         {
  1215.             return $this->reset_key;
  1216.         }
  1217.         /**
  1218.          * Set resetExpire.
  1219.          *
  1220.          * @param \DateTime|null $resetExpire
  1221.          *
  1222.          * @return Customer
  1223.          */
  1224.         public function setResetExpire($resetExpire null)
  1225.         {
  1226.             $this->reset_expire $resetExpire;
  1227.             return $this;
  1228.         }
  1229.         /**
  1230.          * Get resetExpire.
  1231.          *
  1232.          * @return \DateTime|null
  1233.          */
  1234.         public function getResetExpire()
  1235.         {
  1236.             return $this->reset_expire;
  1237.         }
  1238.         /**
  1239.          * Set createDate.
  1240.          *
  1241.          * @param \DateTime $createDate
  1242.          *
  1243.          * @return Customer
  1244.          */
  1245.         public function setCreateDate($createDate)
  1246.         {
  1247.             $this->create_date $createDate;
  1248.             return $this;
  1249.         }
  1250.         /**
  1251.          * Get createDate.
  1252.          *
  1253.          * @return \DateTime
  1254.          */
  1255.         public function getCreateDate()
  1256.         {
  1257.             return $this->create_date;
  1258.         }
  1259.         /**
  1260.          * Set updateDate.
  1261.          *
  1262.          * @param \DateTime $updateDate
  1263.          *
  1264.          * @return Customer
  1265.          */
  1266.         public function setUpdateDate($updateDate)
  1267.         {
  1268.             $this->update_date $updateDate;
  1269.             return $this;
  1270.         }
  1271.         /**
  1272.          * Get updateDate.
  1273.          *
  1274.          * @return \DateTime
  1275.          */
  1276.         public function getUpdateDate()
  1277.         {
  1278.             return $this->update_date;
  1279.         }
  1280.         /**
  1281.          * Add customerFavoriteProduct.
  1282.          *
  1283.          * @param \Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProduct
  1284.          *
  1285.          * @return Customer
  1286.          */
  1287.         public function addCustomerFavoriteProduct(CustomerFavoriteProduct $customerFavoriteProduct)
  1288.         {
  1289.             $this->CustomerFavoriteProducts[] = $customerFavoriteProduct;
  1290.             return $this;
  1291.         }
  1292.         /**
  1293.          * Remove customerFavoriteProduct.
  1294.          *
  1295.          * @param \Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProduct
  1296.          *
  1297.          * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  1298.          */
  1299.         public function removeCustomerFavoriteProduct(CustomerFavoriteProduct $customerFavoriteProduct)
  1300.         {
  1301.             return $this->CustomerFavoriteProducts->removeElement($customerFavoriteProduct);
  1302.         }
  1303.         /**
  1304.          * Get customerFavoriteProducts.
  1305.          *
  1306.          * @return \Doctrine\Common\Collections\Collection
  1307.          */
  1308.         public function getCustomerFavoriteProducts()
  1309.         {
  1310.             return $this->CustomerFavoriteProducts;
  1311.         }
  1312.         /**
  1313.          * Add customerAddress.
  1314.          *
  1315.          * @param \Eccube\Entity\CustomerAddress $customerAddress
  1316.          *
  1317.          * @return Customer
  1318.          */
  1319.         public function addCustomerAddress(CustomerAddress $customerAddress)
  1320.         {
  1321.             $this->CustomerAddresses[] = $customerAddress;
  1322.             return $this;
  1323.         }
  1324.         /**
  1325.          * Remove customerAddress.
  1326.          *
  1327.          * @param \Eccube\Entity\CustomerAddress $customerAddress
  1328.          *
  1329.          * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  1330.          */
  1331.         public function removeCustomerAddress(CustomerAddress $customerAddress)
  1332.         {
  1333.             return $this->CustomerAddresses->removeElement($customerAddress);
  1334.         }
  1335.         /**
  1336.          * Get customerAddresses.
  1337.          *
  1338.          * @return \Doctrine\Common\Collections\Collection
  1339.          */
  1340.         public function getCustomerAddresses()
  1341.         {
  1342.             return $this->CustomerAddresses;
  1343.         }
  1344.         /**
  1345.          * Add order.
  1346.          *
  1347.          * @param \Eccube\Entity\Order $order
  1348.          *
  1349.          * @return Customer
  1350.          */
  1351.         public function addOrder(Order $order)
  1352.         {
  1353.             $this->Orders[] = $order;
  1354.             return $this;
  1355.         }
  1356.         /**
  1357.          * Remove order.
  1358.          *
  1359.          * @param \Eccube\Entity\Order $order
  1360.          *
  1361.          * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  1362.          */
  1363.         public function removeOrder(Order $order)
  1364.         {
  1365.             return $this->Orders->removeElement($order);
  1366.         }
  1367.         /**
  1368.          * Get orders.
  1369.          *
  1370.          * @return \Doctrine\Common\Collections\Collection
  1371.          */
  1372.         public function getOrders()
  1373.         {
  1374.             return $this->Orders;
  1375.         }
  1376.         /**
  1377.          * Set status.
  1378.          *
  1379.          * @param \Eccube\Entity\Master\CustomerStatus|null $status
  1380.          *
  1381.          * @return Customer
  1382.          */
  1383.         public function setStatus(Master\CustomerStatus $status null)
  1384.         {
  1385.             $this->Status $status;
  1386.             return $this;
  1387.         }
  1388.         /**
  1389.          * Get status.
  1390.          *
  1391.          * @return \Eccube\Entity\Master\CustomerStatus|null
  1392.          */
  1393.         public function getStatus()
  1394.         {
  1395.             return $this->Status;
  1396.         }
  1397.         /**
  1398.          * Set sex.
  1399.          *
  1400.          * @param \Eccube\Entity\Master\Sex|null $sex
  1401.          *
  1402.          * @return Customer
  1403.          */
  1404.         public function setSex(Master\Sex $sex null)
  1405.         {
  1406.             $this->Sex $sex;
  1407.             return $this;
  1408.         }
  1409.         /**
  1410.          * Get sex.
  1411.          *
  1412.          * @return \Eccube\Entity\Master\Sex|null
  1413.          */
  1414.         public function getSex()
  1415.         {
  1416.             return $this->Sex;
  1417.         }
  1418.         /**
  1419.          * Set job.
  1420.          *
  1421.          * @param \Eccube\Entity\Master\Job|null $job
  1422.          *
  1423.          * @return Customer
  1424.          */
  1425.         public function setJob(Master\Job $job null)
  1426.         {
  1427.             $this->Job $job;
  1428.             return $this;
  1429.         }
  1430.         /**
  1431.          * Get job.
  1432.          *
  1433.          * @return \Eccube\Entity\Master\Job|null
  1434.          */
  1435.         public function getJob()
  1436.         {
  1437.             return $this->Job;
  1438.         }
  1439.         /**
  1440.          * Set country.
  1441.          *
  1442.          * @param \Eccube\Entity\Master\Country|null $country
  1443.          *
  1444.          * @return Customer
  1445.          */
  1446.         public function setCountry(Master\Country $country null)
  1447.         {
  1448.             $this->Country $country;
  1449.             return $this;
  1450.         }
  1451.         /**
  1452.          * Get country.
  1453.          *
  1454.          * @return \Eccube\Entity\Master\Country|null
  1455.          */
  1456.         public function getCountry()
  1457.         {
  1458.             return $this->Country;
  1459.         }
  1460.         /**
  1461.          * Set pref.
  1462.          *
  1463.          * @param \Eccube\Entity\Master\Pref|null $pref
  1464.          *
  1465.          * @return Customer
  1466.          */
  1467.         public function setPref(Master\Pref $pref null)
  1468.         {
  1469.             $this->Pref $pref;
  1470.             return $this;
  1471.         }
  1472.         /**
  1473.          * Get pref.
  1474.          *
  1475.          * @return \Eccube\Entity\Master\Pref|null
  1476.          */
  1477.         public function getPref()
  1478.         {
  1479.             return $this->Pref;
  1480.         }
  1481.         /**
  1482.          * Set point
  1483.          *
  1484.          * @param string $point
  1485.          *
  1486.          * @return Customer
  1487.          */
  1488.         public function setPoint($point)
  1489.         {
  1490.             $this->point $point;
  1491.             return $this;
  1492.         }
  1493.         /**
  1494.          * Get point
  1495.          *
  1496.          * @return string
  1497.          */
  1498.         public function getPoint()
  1499.         {
  1500.             return $this->point;
  1501.         }
  1502.         /**
  1503.          * Set memberRank
  1504.          *
  1505.          * @param string|null $memberRank
  1506.          *
  1507.          * @return Customer
  1508.          */
  1509.         public function setMemberRank($memberRank null)
  1510.         {
  1511.             $this->member_rank $memberRank;
  1512.             return $this;
  1513.         }
  1514.         /**
  1515.          * Get memberRank
  1516.          *
  1517.          * @return string|null
  1518.          */
  1519.         public function getMemberRank()
  1520.         {
  1521.             return $this->member_rank;
  1522.         }
  1523.         /**
  1524.          * Set amountCategory
  1525.          *
  1526.          * @param string|null $amountCategory
  1527.          *
  1528.          * @return Customer
  1529.          */
  1530.         public function setAmountCategory($amountCategory null)
  1531.         {
  1532.             $this->amount_category $amountCategory;
  1533.             return $this;
  1534.         }
  1535.         /**
  1536.          * Get amountCategory
  1537.          *
  1538.          * @return string|null
  1539.          */
  1540.         public function getAmountCategory()
  1541.         {
  1542.             return $this->amount_category;
  1543.         }
  1544.         /**
  1545.          * Set holiday
  1546.          *
  1547.          * @param string|null $holiday
  1548.          *
  1549.          * @return Customer
  1550.          */
  1551.         public function setHoliday($holiday null)
  1552.         {
  1553.             $this->holiday $holiday;
  1554.             return $this;
  1555.         }
  1556.         /**
  1557.          * Get holiday
  1558.          *
  1559.          * @return string|null
  1560.          */
  1561.         public function getHoliday()
  1562.         {
  1563.             return $this->holiday;
  1564.         }
  1565.         /**
  1566.          * Set mainContactName
  1567.          *
  1568.          * @param string|null $mainContactName
  1569.          *
  1570.          * @return Customer
  1571.          */
  1572.         public function setMainContactName($mainContactName null)
  1573.         {
  1574.             $this->main_contact_name $mainContactName;
  1575.             return $this;
  1576.         }
  1577.         /**
  1578.          * Get mainContactName
  1579.          *
  1580.          * @return string|null
  1581.          */
  1582.         public function getMainContactName()
  1583.         {
  1584.             return $this->main_contact_name;
  1585.         }
  1586.         /**
  1587.          * Set mainContactKana
  1588.          *
  1589.          * @param string|null $mainContactKana
  1590.          *
  1591.          * @return Customer
  1592.          */
  1593.         public function setMainContactKana($mainContactKana null)
  1594.         {
  1595.             $this->main_contact_kana $mainContactKana;
  1596.             return $this;
  1597.         }
  1598.         /**
  1599.          * Get mainContactKana
  1600.          *
  1601.          * @return string|null
  1602.          */
  1603.         public function getMainContactKana()
  1604.         {
  1605.             return $this->main_contact_kana;
  1606.         }
  1607.         /**
  1608.          * Set mainContactEmail
  1609.          *
  1610.          * @param string|null $mainContactEmail
  1611.          *
  1612.          * @return Customer
  1613.          */
  1614.         public function setMainContactEmail($mainContactEmail null)
  1615.         {
  1616.             $this->main_contact_email $mainContactEmail;
  1617.             return $this;
  1618.         }
  1619.         /**
  1620.          * Get mainContactEmail
  1621.          *
  1622.          * @return string|null
  1623.          */
  1624.         public function getMainContactEmail()
  1625.         {
  1626.             return $this->main_contact_email;
  1627.         }
  1628.         /**
  1629.          * Set mainContactPhone
  1630.          *
  1631.          * @param string|null $mainContactPhone
  1632.          *
  1633.          * @return Customer
  1634.          */
  1635.         public function setMainContactPhone($mainContactPhone null)
  1636.         {
  1637.             $this->main_contact_phone $mainContactPhone;
  1638.             return $this;
  1639.         }
  1640.         /**
  1641.          * Get mainContactPhone
  1642.          *
  1643.          * @return string|null
  1644.          */
  1645.         public function getMainContactPhone()
  1646.         {
  1647.             return $this->main_contact_phone;
  1648.         }
  1649.         /**
  1650.          * Set fax
  1651.          *
  1652.          * @param string|null $fax
  1653.          *
  1654.          * @return Customer
  1655.          */
  1656.         public function setFax($fax null)
  1657.         {
  1658.             $this->fax $fax;
  1659.             return $this;
  1660.         }
  1661.         /**
  1662.          * Get fax
  1663.          *
  1664.          * @return string|null
  1665.          */
  1666.         public function getFax()
  1667.         {
  1668.             return $this->fax;
  1669.         }
  1670.         /**
  1671.          * Set joinYear
  1672.          *
  1673.          * @param string|null $joinYear
  1674.          *
  1675.          * @return Customer
  1676.          */
  1677.         public function setJoinYear($joinYear null)
  1678.         {
  1679.             $this->join_year $joinYear;
  1680.             return $this;
  1681.         }
  1682.         /**
  1683.          * Get joinYear
  1684.          *
  1685.          * @return string|null
  1686.          */
  1687.         public function getJoinYear()
  1688.         {
  1689.             return $this->join_year;
  1690.         }
  1691.         /**
  1692.          * Set joinMonth
  1693.          *
  1694.          * @param string|null $joinMonth
  1695.          *
  1696.          * @return Customer
  1697.          */
  1698.         public function setJoinMonth($joinMonth null)
  1699.         {
  1700.             $this->join_month $joinMonth;
  1701.             return $this;
  1702.         }
  1703.         /**
  1704.          * Get joinMonth
  1705.          *
  1706.          * @return string|null
  1707.          */
  1708.         public function getJoinMonth()
  1709.         {
  1710.             return $this->join_month;
  1711.         }
  1712.         /**
  1713.          * Get join date in y/m format.
  1714.          *
  1715.          * @return string|null
  1716.          */
  1717.         public function getJoinDateYm()
  1718.         {
  1719.             if (!empty($this->join_year) && !empty($this->join_month)) {
  1720.                 return $this->join_year '/' $this->join_month;
  1721.             }
  1722.             return null;
  1723.         }
  1724.         /**
  1725.          * Set mailMagazineType
  1726.          *
  1727.          * @param string|null $mailMagazineType
  1728.          *
  1729.          * @return Customer
  1730.          */
  1731.         public function setMailMagazineType($mailMagazineType null)
  1732.         {
  1733.             $this->mail_magazine_type $mailMagazineType;
  1734.             return $this;
  1735.         }
  1736.         /**
  1737.          * Get mailMagazineType
  1738.          *
  1739.          * @return string|null
  1740.          */
  1741.         public function getMailMagazineType()
  1742.         {
  1743.             return $this->mail_magazine_type;
  1744.         }
  1745.         /**
  1746.          * Set contact1LastName
  1747.          *
  1748.          * @param string|null $contact1LastName
  1749.          *
  1750.          * @return Customer
  1751.          */
  1752.         public function setContact1LastName($contact1LastName null)
  1753.         {
  1754.             $this->contact1_last_name $contact1LastName;
  1755.             return $this;
  1756.         }
  1757.         /**
  1758.          * Get contact1LastName
  1759.          *
  1760.          * @return string|null
  1761.          */
  1762.         public function getContact1LastName()
  1763.         {
  1764.             return $this->contact1_last_name;
  1765.         }
  1766.         /**
  1767.          * Set contact1FirstName
  1768.          *
  1769.          * @param string|null $contact1FirstName
  1770.          *
  1771.          * @return Customer
  1772.          */
  1773.         public function setContact1FirstName($contact1FirstName null)
  1774.         {
  1775.             $this->contact1_first_name $contact1FirstName;
  1776.             return $this;
  1777.         }
  1778.         /**
  1779.          * Get contact1FirstName
  1780.          *
  1781.          * @return string|null
  1782.          */
  1783.         public function getContact1FirstName()
  1784.         {
  1785.             return $this->contact1_first_name;
  1786.         }
  1787.         /**
  1788.          * Set contact1LastNameKana
  1789.          *
  1790.          * @param string|null $contact1LastNameKana
  1791.          *
  1792.          * @return Customer
  1793.          */
  1794.         public function setContact1LastNameKana($contact1LastNameKana null)
  1795.         {
  1796.             $this->contact1_last_name_kana $contact1LastNameKana;
  1797.             return $this;
  1798.         }
  1799.         /**
  1800.          * Get contact1LastNameKana
  1801.          *
  1802.          * @return string|null
  1803.          */
  1804.         public function getContact1LastNameKana()
  1805.         {
  1806.             return $this->contact1_last_name_kana;
  1807.         }
  1808.         /**
  1809.          * Set contact1FirstNameKana
  1810.          *
  1811.          * @param string|null $contact1FirstNameKana
  1812.          *
  1813.          * @return Customer
  1814.          */
  1815.         public function setContact1FirstNameKana($contact1FirstNameKana null)
  1816.         {
  1817.             $this->contact1_first_name_kana $contact1FirstNameKana;
  1818.             return $this;
  1819.         }
  1820.         /**
  1821.          * Get contact1FirstNameKana
  1822.          *
  1823.          * @return string|null
  1824.          */
  1825.         public function getContact1FirstNameKana()
  1826.         {
  1827.             return $this->contact1_first_name_kana;
  1828.         }
  1829.         /**
  1830.          * Set contact1Email
  1831.          *
  1832.          * @param string|null $contact1Email
  1833.          *
  1834.          * @return Customer
  1835.          */
  1836.         public function setContact1Email($contact1Email null)
  1837.         {
  1838.             $this->contact1_email $contact1Email;
  1839.             return $this;
  1840.         }
  1841.         /**
  1842.          * Get contact1Email
  1843.          *
  1844.          * @return string|null
  1845.          */
  1846.         public function getContact1Email()
  1847.         {
  1848.             return $this->contact1_email;
  1849.         }
  1850.         /**
  1851.          * Set contact1Phone
  1852.          *
  1853.          * @param string|null $contact1Phone
  1854.          *
  1855.          * @return Customer
  1856.          */
  1857.         public function setContact1Phone($contact1Phone null)
  1858.         {
  1859.             $this->contact1_phone $contact1Phone;
  1860.             return $this;
  1861.         }
  1862.         /**
  1863.          * Get contact1Phone
  1864.          *
  1865.          * @return string|null
  1866.          */
  1867.         public function getContact1Phone()
  1868.         {
  1869.             return $this->contact1_phone;
  1870.         }
  1871.         // contact2〜contact10 も同様に setter と getter を追加
  1872.         /**
  1873.          * Set contact2LastName
  1874.          *
  1875.          * @param string|null $contact2LastName
  1876.          *
  1877.          * @return Customer
  1878.          */
  1879.         public function setContact2LastName($contact2LastName null)
  1880.         {
  1881.             $this->contact2_last_name $contact2LastName;
  1882.             return $this;
  1883.         }
  1884.         /**
  1885.          * Get contact2LastName
  1886.          *
  1887.          * @return string|null
  1888.          */
  1889.         public function getContact2LastName()
  1890.         {
  1891.             return $this->contact2_last_name;
  1892.         }
  1893.         /**
  1894.          * Set contact2FirstName
  1895.          *
  1896.          * @param string|null $contact2FirstName
  1897.          *
  1898.          * @return Customer
  1899.          */
  1900.         public function setContact2FirstName($contact2FirstName null)
  1901.         {
  1902.             $this->contact2_first_name $contact2FirstName;
  1903.             return $this;
  1904.         }
  1905.         /**
  1906.          * Get contact2FirstName
  1907.          *
  1908.          * @return string|null
  1909.          */
  1910.         public function getContact2FirstName()
  1911.         {
  1912.             return $this->contact2_first_name;
  1913.         }
  1914.         /**
  1915.          * Set contact2LastNameKana
  1916.          *
  1917.          * @param string|null $contact2LastNameKana
  1918.          *
  1919.          * @return Customer
  1920.          */
  1921.         public function setContact2LastNameKana($contact2LastNameKana null)
  1922.         {
  1923.             $this->contact2_last_name_kana $contact2LastNameKana;
  1924.             return $this;
  1925.         }
  1926.         /**
  1927.          * Get contact2LastNameKana
  1928.          *
  1929.          * @return string|null
  1930.          */
  1931.         public function getContact2LastNameKana()
  1932.         {
  1933.             return $this->contact2_last_name_kana;
  1934.         }
  1935.         /**
  1936.          * Set contact2FirstNameKana
  1937.          *
  1938.          * @param string|null $contact2FirstNameKana
  1939.          *
  1940.          * @return Customer
  1941.          */
  1942.         public function setContact2FirstNameKana($contact2FirstNameKana null)
  1943.         {
  1944.             $this->contact2_first_name_kana $contact2FirstNameKana;
  1945.             return $this;
  1946.         }
  1947.         /**
  1948.          * Get contact2FirstNameKana
  1949.          *
  1950.          * @return string|null
  1951.          */
  1952.         public function getContact2FirstNameKana()
  1953.         {
  1954.             return $this->contact2_first_name_kana;
  1955.         }
  1956.         /**
  1957.          * Set contact2Email
  1958.          *
  1959.          * @param string|null $contact2Email
  1960.          *
  1961.          * @return Customer
  1962.          */
  1963.         public function setContact2Email($contact2Email null)
  1964.         {
  1965.             $this->contact2_email $contact2Email;
  1966.             return $this;
  1967.         }
  1968.         /**
  1969.          * Get contact2Email
  1970.          *
  1971.          * @return string|null
  1972.          */
  1973.         public function getContact2Email()
  1974.         {
  1975.             return $this->contact2_email;
  1976.         }
  1977.         /**
  1978.          * Set contact2Phone
  1979.          *
  1980.          * @param string|null $contact2Phone
  1981.          *
  1982.          * @return Customer
  1983.          */
  1984.         public function setContact2Phone($contact2Phone null)
  1985.         {
  1986.             $this->contact2_phone $contact2Phone;
  1987.             return $this;
  1988.         }
  1989.         /**
  1990.          * Get contact2Phone
  1991.          *
  1992.          * @return string|null
  1993.          */
  1994.         public function getContact2Phone()
  1995.         {
  1996.             return $this->contact2_phone;
  1997.         }
  1998.         /**
  1999.          * Set contact3LastName
  2000.          *
  2001.          * @param string|null $contact3LastName
  2002.          *
  2003.          * @return Customer
  2004.          */
  2005.         public function setContact3LastName($contact3LastName null)
  2006.         {
  2007.             $this->contact3_last_name $contact3LastName;
  2008.             return $this;
  2009.         }
  2010.         /**
  2011.          * Get contact3LastName
  2012.          *
  2013.          * @return string|null
  2014.          */
  2015.         public function getContact3LastName()
  2016.         {
  2017.             return $this->contact3_last_name;
  2018.         }
  2019.         /**
  2020.          * Set contact3FirstName
  2021.          *
  2022.          * @param string|null $contact3FirstName
  2023.          *
  2024.          * @return Customer
  2025.          */
  2026.         public function setContact3FirstName($contact3FirstName null)
  2027.         {
  2028.             $this->contact3_first_name $contact3FirstName;
  2029.             return $this;
  2030.         }
  2031.         /**
  2032.          * Get contact3FirstName
  2033.          *
  2034.          * @return string|null
  2035.          */
  2036.         public function getContact3FirstName()
  2037.         {
  2038.             return $this->contact3_first_name;
  2039.         }
  2040.         /**
  2041.          * Set contact3LastNameKana
  2042.          *
  2043.          * @param string|null $contact3LastNameKana
  2044.          *
  2045.          * @return Customer
  2046.          */
  2047.         public function setContact3LastNameKana($contact3LastNameKana null)
  2048.         {
  2049.             $this->contact3_last_name_kana $contact3LastNameKana;
  2050.             return $this;
  2051.         }
  2052.         /**
  2053.          * Get contact3LastNameKana
  2054.          *
  2055.          * @return string|null
  2056.          */
  2057.         public function getContact3LastNameKana()
  2058.         {
  2059.             return $this->contact3_last_name_kana;
  2060.         }
  2061.         /**
  2062.          * Set contact3FirstNameKana
  2063.          *
  2064.          * @param string|null $contact3FirstNameKana
  2065.          *
  2066.          * @return Customer
  2067.          */
  2068.         public function setContact3FirstNameKana($contact3FirstNameKana null)
  2069.         {
  2070.             $this->contact3_first_name_kana $contact3FirstNameKana;
  2071.             return $this;
  2072.         }
  2073.         /**
  2074.          * Get contact3FirstNameKana
  2075.          *
  2076.          * @return string|null
  2077.          */
  2078.         public function getContact3FirstNameKana()
  2079.         {
  2080.             return $this->contact3_first_name_kana;
  2081.         }
  2082.         /**
  2083.          * Set contact3Email
  2084.          *
  2085.          * @param string|null $contact3Email
  2086.          *
  2087.          * @return Customer
  2088.          */
  2089.         public function setContact3Email($contact3Email null)
  2090.         {
  2091.             $this->contact3_email $contact3Email;
  2092.             return $this;
  2093.         }
  2094.         /**
  2095.          * Get contact3Email
  2096.          *
  2097.          * @return string|null
  2098.          */
  2099.         public function getContact3Email()
  2100.         {
  2101.             return $this->contact3_email;
  2102.         }
  2103.         /**
  2104.          * Set contact3Phone
  2105.          *
  2106.          * @param string|null $contact3Phone
  2107.          *
  2108.          * @return Customer
  2109.          */
  2110.         public function setContact3Phone($contact3Phone null)
  2111.         {
  2112.             $this->contact3_phone $contact3Phone;
  2113.             return $this;
  2114.         }
  2115.         /**
  2116.          * Get contact3Phone
  2117.          *
  2118.          * @return string|null
  2119.          */
  2120.         public function getContact3Phone()
  2121.         {
  2122.             return $this->contact3_phone;
  2123.         }
  2124.         // contact4〜contact10 も同様に setter と getter を追加
  2125.         /**
  2126.          * Set contact4LastName
  2127.          *
  2128.          * @param string|null $contact4LastName
  2129.          *
  2130.          * @return Customer
  2131.          */
  2132.         public function setContact4LastName($contact4LastName null)
  2133.         {
  2134.             $this->contact4_last_name $contact4LastName;
  2135.             return $this;
  2136.         }
  2137.         /**
  2138.          * Get contact4LastName
  2139.          *
  2140.          * @return string|null
  2141.          */
  2142.         public function getContact4LastName()
  2143.         {
  2144.             return $this->contact4_last_name;
  2145.         }
  2146.         /**
  2147.          * Set contact4FirstName
  2148.          *
  2149.          * @param string|null $contact4FirstName
  2150.          *
  2151.          * @return Customer
  2152.          */
  2153.         public function setContact4FirstName($contact4FirstName null)
  2154.         {
  2155.             $this->contact4_first_name $contact4FirstName;
  2156.             return $this;
  2157.         }
  2158.         /**
  2159.          * Get contact4FirstName
  2160.          *
  2161.          * @return string|null
  2162.          */
  2163.         public function getContact4FirstName()
  2164.         {
  2165.             return $this->contact4_first_name;
  2166.         }
  2167.         /**
  2168.          * Set contact4LastNameKana
  2169.          *
  2170.          * @param string|null $contact4LastNameKana
  2171.          *
  2172.          * @return Customer
  2173.          */
  2174.         public function setContact4LastNameKana($contact4LastNameKana null)
  2175.         {
  2176.             $this->contact4_last_name_kana $contact4LastNameKana;
  2177.             return $this;
  2178.         }
  2179.         /**
  2180.          * Get contact4LastNameKana
  2181.          *
  2182.          * @return string|null
  2183.          */
  2184.         public function getContact4LastNameKana()
  2185.         {
  2186.             return $this->contact4_last_name_kana;
  2187.         }
  2188.         /**
  2189.          * Set contact4FirstNameKana
  2190.          *
  2191.          * @param string|null $contact4FirstNameKana
  2192.          *
  2193.          * @return Customer
  2194.          */
  2195.         public function setContact4FirstNameKana($contact4FirstNameKana null)
  2196.         {
  2197.             $this->contact4_first_name_kana $contact4FirstNameKana;
  2198.             return $this;
  2199.         }
  2200.         /**
  2201.          * Get contact4FirstNameKana
  2202.          *
  2203.          * @return string|null
  2204.          */
  2205.         public function getContact4FirstNameKana()
  2206.         {
  2207.             return $this->contact4_first_name_kana;
  2208.         }
  2209.         /**
  2210.          * Set contact4Email
  2211.          *
  2212.          * @param string|null $contact4Email
  2213.          *
  2214.          * @return Customer
  2215.          */
  2216.         public function setContact4Email($contact4Email null)
  2217.         {
  2218.             $this->contact4_email $contact4Email;
  2219.             return $this;
  2220.         }
  2221.         /**
  2222.          * Get contact4Email
  2223.          *
  2224.          * @return string|null
  2225.          */
  2226.         public function getContact4Email()
  2227.         {
  2228.             return $this->contact4_email;
  2229.         }
  2230.         /**
  2231.          * Set contact4Phone
  2232.          *
  2233.          * @param string|null $contact4Phone
  2234.          *
  2235.          * @return Customer
  2236.          */
  2237.         public function setContact4Phone($contact4Phone null)
  2238.         {
  2239.             $this->contact4_phone $contact4Phone;
  2240.             return $this;
  2241.         }
  2242.         /**
  2243.          * Get contact4Phone
  2244.          *
  2245.          * @return string|null
  2246.          */
  2247.         public function getContact4Phone()
  2248.         {
  2249.             return $this->contact4_phone;
  2250.         }
  2251.         /**
  2252.          * Set contact5LastName
  2253.          *
  2254.          * @param string|null $contact5LastName
  2255.          *
  2256.          * @return Customer
  2257.          */
  2258.         public function setContact5LastName($contact5LastName null)
  2259.         {
  2260.             $this->contact5_last_name $contact5LastName;
  2261.             return $this;
  2262.         }
  2263.         /**
  2264.          * Get contact5LastName
  2265.          *
  2266.          * @return string|null
  2267.          */
  2268.         public function getContact5LastName()
  2269.         {
  2270.             return $this->contact5_last_name;
  2271.         }
  2272.         /**
  2273.          * Set contact5FirstName
  2274.          *
  2275.          * @param string|null $contact5FirstName
  2276.          *
  2277.          * @return Customer
  2278.          */
  2279.         public function setContact5FirstName($contact5FirstName null)
  2280.         {
  2281.             $this->contact5_first_name $contact5FirstName;
  2282.             return $this;
  2283.         }
  2284.         /**
  2285.          * Get contact5FirstName
  2286.          *
  2287.          * @return string|null
  2288.          */
  2289.         public function getContact5FirstName()
  2290.         {
  2291.             return $this->contact5_first_name;
  2292.         }
  2293.         /**
  2294.          * Set contact5LastNameKana
  2295.          *
  2296.          * @param string|null $contact5LastNameKana
  2297.          *
  2298.          * @return Customer
  2299.          */
  2300.         public function setContact5LastNameKana($contact5LastNameKana null)
  2301.         {
  2302.             $this->contact5_last_name_kana $contact5LastNameKana;
  2303.             return $this;
  2304.         }
  2305.         /**
  2306.          * Get contact5LastNameKana
  2307.          *
  2308.          * @return string|null
  2309.          */
  2310.         public function getContact5LastNameKana()
  2311.         {
  2312.             return $this->contact5_last_name_kana;
  2313.         }
  2314.         /**
  2315.          * Set contact5FirstNameKana
  2316.          *
  2317.          * @param string|null $contact5FirstNameKana
  2318.          *
  2319.          * @return Customer
  2320.          */
  2321.         public function setContact5FirstNameKana($contact5FirstNameKana null)
  2322.         {
  2323.             $this->contact5_first_name_kana $contact5FirstNameKana;
  2324.             return $this;
  2325.         }
  2326.         /**
  2327.          * Get contact5FirstNameKana
  2328.          *
  2329.          * @return string|null
  2330.          */
  2331.         public function getContact5FirstNameKana()
  2332.         {
  2333.             return $this->contact5_first_name_kana;
  2334.         }
  2335.         /**
  2336.          * Set contact5Email
  2337.          *
  2338.          * @param string|null $contact5Email
  2339.          *
  2340.          * @return Customer
  2341.          */
  2342.         public function setContact5Email($contact5Email null)
  2343.         {
  2344.             $this->contact5_email $contact5Email;
  2345.             return $this;
  2346.         }
  2347.         /**
  2348.          * Get contact5Email
  2349.          *
  2350.          * @return string|null
  2351.          */
  2352.         public function getContact5Email()
  2353.         {
  2354.             return $this->contact5_email;
  2355.         }
  2356.         /**
  2357.          * Set contact5Phone
  2358.          *
  2359.          * @param string|null $contact5Phone
  2360.          *
  2361.          * @return Customer
  2362.          */
  2363.         public function setContact5Phone($contact5Phone null)
  2364.         {
  2365.             $this->contact5_phone $contact5Phone;
  2366.             return $this;
  2367.         }
  2368.         /**
  2369.          * Get contact5Phone
  2370.          *
  2371.          * @return string|null
  2372.          */
  2373.         public function getContact5Phone()
  2374.         {
  2375.             return $this->contact5_phone;
  2376.         }
  2377.         /**
  2378.          * Set contact6LastName
  2379.          *
  2380.          * @param string|null $contact6LastName
  2381.          *
  2382.          * @return Customer
  2383.          */
  2384.         public function setContact6LastName($contact6LastName null)
  2385.         {
  2386.             $this->contact6_last_name $contact6LastName;
  2387.             return $this;
  2388.         }
  2389.         /**
  2390.          * Get contact6LastName
  2391.          *
  2392.          * @return string|null
  2393.          */
  2394.         public function getContact6LastName()
  2395.         {
  2396.             return $this->contact6_last_name;
  2397.         }
  2398.         /**
  2399.          * Set contact6FirstName
  2400.          *
  2401.          * @param string|null $contact6FirstName
  2402.          *
  2403.          * @return Customer
  2404.          */
  2405.         public function setContact6FirstName($contact6FirstName null)
  2406.         {
  2407.             $this->contact6_first_name $contact6FirstName;
  2408.             return $this;
  2409.         }
  2410.         /**
  2411.          * Get contact6FirstName
  2412.          *
  2413.          * @return string|null
  2414.          */
  2415.         public function getContact6FirstName()
  2416.         {
  2417.             return $this->contact6_first_name;
  2418.         }
  2419.         /**
  2420.          * Set contact6LastNameKana
  2421.          *
  2422.          * @param string|null $contact6LastNameKana
  2423.          *
  2424.          * @return Customer
  2425.          */
  2426.         public function setContact6LastNameKana($contact6LastNameKana null)
  2427.         {
  2428.             $this->contact6_last_name_kana $contact6LastNameKana;
  2429.             return $this;
  2430.         }
  2431.         /**
  2432.          * Get contact6LastNameKana
  2433.          *
  2434.          * @return string|null
  2435.          */
  2436.         public function getContact6LastNameKana()
  2437.         {
  2438.             return $this->contact6_last_name_kana;
  2439.         }
  2440.         /**
  2441.          * Set contact6FirstNameKana
  2442.          *
  2443.          * @param string|null $contact6FirstNameKana
  2444.          *
  2445.          * @return Customer
  2446.          */
  2447.         public function setContact6FirstNameKana($contact6FirstNameKana null)
  2448.         {
  2449.             $this->contact6_first_name_kana $contact6FirstNameKana;
  2450.             return $this;
  2451.         }
  2452.         /**
  2453.          * Get contact6FirstNameKana
  2454.          *
  2455.          * @return string|null
  2456.          */
  2457.         public function getContact6FirstNameKana()
  2458.         {
  2459.             return $this->contact6_first_name_kana;
  2460.         }
  2461.         /**
  2462.          * Set contact6Email
  2463.          *
  2464.          * @param string|null $contact6Email
  2465.          *
  2466.          * @return Customer
  2467.          */
  2468.         public function setContact6Email($contact6Email null)
  2469.         {
  2470.             $this->contact6_email $contact6Email;
  2471.             return $this;
  2472.         }
  2473.         /**
  2474.          * Get contact6Email
  2475.          *
  2476.          * @return string|null
  2477.          */
  2478.         public function getContact6Email()
  2479.         {
  2480.             return $this->contact6_email;
  2481.         }
  2482.         /**
  2483.          * Set contact6Phone
  2484.          *
  2485.          * @param string|null $contact6Phone
  2486.          *
  2487.          * @return Customer
  2488.          */
  2489.         public function setContact6Phone($contact6Phone null)
  2490.         {
  2491.             $this->contact6_phone $contact6Phone;
  2492.             return $this;
  2493.         }
  2494.         /**
  2495.          * Get contact6Phone
  2496.          *
  2497.          * @return string|null
  2498.          */
  2499.         public function getContact6Phone()
  2500.         {
  2501.             return $this->contact6_phone;
  2502.         }
  2503.         /**
  2504.          * Set contact7LastName
  2505.          *
  2506.          * @param string|null $contact7LastName
  2507.          *
  2508.          * @return Customer
  2509.          */
  2510.         public function setContact7LastName($contact7LastName null)
  2511.         {
  2512.             $this->contact7_last_name $contact7LastName;
  2513.             return $this;
  2514.         }
  2515.         /**
  2516.          * Get contact7LastName
  2517.          *
  2518.          * @return string|null
  2519.          */
  2520.         public function getContact7LastName()
  2521.         {
  2522.             return $this->contact7_last_name;
  2523.         }
  2524.         /**
  2525.          * Set contact7FirstName
  2526.          *
  2527.          * @param string|null $contact7FirstName
  2528.          *
  2529.          * @return Customer
  2530.          */
  2531.         public function setContact7FirstName($contact7FirstName null)
  2532.         {
  2533.             $this->contact7_first_name $contact7FirstName;
  2534.             return $this;
  2535.         }
  2536.         /**
  2537.          * Get contact7FirstName
  2538.          *
  2539.          * @return string|null
  2540.          */
  2541.         public function getContact7FirstName()
  2542.         {
  2543.             return $this->contact7_first_name;
  2544.         }
  2545.         /**
  2546.          * Set contact7LastNameKana
  2547.          *
  2548.          * @param string|null $contact7LastNameKana
  2549.          *
  2550.          * @return Customer
  2551.          */
  2552.         public function setContact7LastNameKana($contact7LastNameKana null)
  2553.         {
  2554.             $this->contact7_last_name_kana $contact7LastNameKana;
  2555.             return $this;
  2556.         }
  2557.         /**
  2558.          * Get contact7LastNameKana
  2559.          *
  2560.          * @return string|null
  2561.          */
  2562.         public function getContact7LastNameKana()
  2563.         {
  2564.             return $this->contact7_last_name_kana;
  2565.         }
  2566.         /**
  2567.          * Set contact7FirstNameKana
  2568.          *
  2569.          * @param string|null $contact7FirstNameKana
  2570.          *
  2571.          * @return Customer
  2572.          */
  2573.         public function setContact7FirstNameKana($contact7FirstNameKana null)
  2574.         {
  2575.             $this->contact7_first_name_kana $contact7FirstNameKana;
  2576.             return $this;
  2577.         }
  2578.         /**
  2579.          * Get contact7FirstNameKana
  2580.          *
  2581.          * @return string|null
  2582.          */
  2583.         public function getContact7FirstNameKana()
  2584.         {
  2585.             return $this->contact7_first_name_kana;
  2586.         }
  2587.         /**
  2588.          * Set contact7Email
  2589.          *
  2590.          * @param string|null $contact7Email
  2591.          *
  2592.          * @return Customer
  2593.          */
  2594.         public function setContact7Email($contact7Email null)
  2595.         {
  2596.             $this->contact7_email $contact7Email;
  2597.             return $this;
  2598.         }
  2599.         /**
  2600.          * Get contact7Email
  2601.          *
  2602.          * @return string|null
  2603.          */
  2604.         public function getContact7Email()
  2605.         {
  2606.             return $this->contact7_email;
  2607.         }
  2608.         /**
  2609.          * Set contact7Phone
  2610.          *
  2611.          * @param string|null $contact7Phone
  2612.          *
  2613.          * @return Customer
  2614.          */
  2615.         public function setContact7Phone($contact7Phone null)
  2616.         {
  2617.             $this->contact7_phone $contact7Phone;
  2618.             return $this;
  2619.         }
  2620.         /**
  2621.          * Get contact7Phone
  2622.          *
  2623.          * @return string|null
  2624.          */
  2625.         public function getContact7Phone()
  2626.         {
  2627.             return $this->contact7_phone;
  2628.         }
  2629.         /**
  2630.          * Set contact8LastName
  2631.          *
  2632.          * @param string|null $contact8LastName
  2633.          *
  2634.          * @return Customer
  2635.          */
  2636.         public function setContact8LastName($contact8LastName null)
  2637.         {
  2638.             $this->contact8_last_name $contact8LastName;
  2639.             return $this;
  2640.         }
  2641.         /**
  2642.          * Get contact8LastName
  2643.          *
  2644.          * @return string|null
  2645.          */
  2646.         public function getContact8LastName()
  2647.         {
  2648.             return $this->contact8_last_name;
  2649.         }
  2650.         /**
  2651.          * Set contact8FirstName
  2652.          *
  2653.          * @param string|null $contact8FirstName
  2654.          *
  2655.          * @return Customer
  2656.          */
  2657.         public function setContact8FirstName($contact8FirstName null)
  2658.         {
  2659.             $this->contact8_first_name $contact8FirstName;
  2660.             return $this;
  2661.         }
  2662.         /**
  2663.          * Get contact8FirstName
  2664.          *
  2665.          * @return string|null
  2666.          */
  2667.         public function getContact8FirstName()
  2668.         {
  2669.             return $this->contact8_first_name;
  2670.         }
  2671.         /**
  2672.          * Set contact8LastNameKana
  2673.          *
  2674.          * @param string|null $contact8LastNameKana
  2675.          *
  2676.          * @return Customer
  2677.          */
  2678.         public function setContact8LastNameKana($contact8LastNameKana null)
  2679.         {
  2680.             $this->contact8_last_name_kana $contact8LastNameKana;
  2681.             return $this;
  2682.         }
  2683.         /**
  2684.          * Get contact8LastNameKana
  2685.          *
  2686.          * @return string|null
  2687.          */
  2688.         public function getContact8LastNameKana()
  2689.         {
  2690.             return $this->contact8_last_name_kana;
  2691.         }
  2692.         /**
  2693.          * Set contact8FirstNameKana
  2694.          *
  2695.          * @param string|null $contact8FirstNameKana
  2696.          *
  2697.          * @return Customer
  2698.          */
  2699.         public function setContact8FirstNameKana($contact8FirstNameKana null)
  2700.         {
  2701.             $this->contact8_first_name_kana $contact8FirstNameKana;
  2702.             return $this;
  2703.         }
  2704.         /**
  2705.          * Get contact8FirstNameKana
  2706.          *
  2707.          * @return string|null
  2708.          */
  2709.         public function getContact8FirstNameKana()
  2710.         {
  2711.             return $this->contact8_first_name_kana;
  2712.         }
  2713.         /**
  2714.          * Set contact8Email
  2715.          *
  2716.          * @param string|null $contact8Email
  2717.          *
  2718.          * @return Customer
  2719.          */
  2720.         public function setContact8Email($contact8Email null)
  2721.         {
  2722.             $this->contact8_email $contact8Email;
  2723.             return $this;
  2724.         }
  2725.         /**
  2726.          * Get contact8Email
  2727.          *
  2728.          * @return string|null
  2729.          */
  2730.         public function getContact8Email()
  2731.         {
  2732.             return $this->contact8_email;
  2733.         }
  2734.         /**
  2735.          * Set contact8Phone
  2736.          *
  2737.          * @param string|null $contact8Phone
  2738.          *
  2739.          * @return Customer
  2740.          */
  2741.         public function setContact8Phone($contact8Phone null)
  2742.         {
  2743.             $this->contact8_phone $contact8Phone;
  2744.             return $this;
  2745.         }
  2746.         /**
  2747.          * Get contact8Phone
  2748.          *
  2749.          * @return string|null
  2750.          */
  2751.         public function getContact8Phone()
  2752.         {
  2753.             return $this->contact8_phone;
  2754.         }
  2755.         /**
  2756.          * Set contact9LastName
  2757.          *
  2758.          * @param string|null $contact9LastName
  2759.          *
  2760.          * @return Customer
  2761.          */
  2762.         public function setContact9LastName($contact9LastName null)
  2763.         {
  2764.             $this->contact9_last_name $contact9LastName;
  2765.             return $this;
  2766.         }
  2767.         /**
  2768.          * Get contact9LastName
  2769.          *
  2770.          * @return string|null
  2771.          */
  2772.         public function getContact9LastName()
  2773.         {
  2774.             return $this->contact9_last_name;
  2775.         }
  2776.         /**
  2777.          * Set contact9FirstName
  2778.          *
  2779.          * @param string|null $contact9FirstName
  2780.          *
  2781.          * @return Customer
  2782.          */
  2783.         public function setContact9FirstName($contact9FirstName null)
  2784.         {
  2785.             $this->contact9_first_name $contact9FirstName;
  2786.             return $this;
  2787.         }
  2788.         /**
  2789.          * Get contact9FirstName
  2790.          *
  2791.          * @return string|null
  2792.          */
  2793.         public function getContact9FirstName()
  2794.         {
  2795.             return $this->contact9_first_name;
  2796.         }
  2797.         /**
  2798.          * Set contact9LastNameKana
  2799.          *
  2800.          * @param string|null $contact9LastNameKana
  2801.          *
  2802.          * @return Customer
  2803.          */
  2804.         public function setContact9LastNameKana($contact9LastNameKana null)
  2805.         {
  2806.             $this->contact9_last_name_kana $contact9LastNameKana;
  2807.             return $this;
  2808.         }
  2809.         /**
  2810.          * Get contact9LastNameKana
  2811.          *
  2812.          * @return string|null
  2813.          */
  2814.         public function getContact9LastNameKana()
  2815.         {
  2816.             return $this->contact9_last_name_kana;
  2817.         }
  2818.         /**
  2819.          * Set contact9FirstNameKana
  2820.          *
  2821.          * @param string|null $contact9FirstNameKana
  2822.          *
  2823.          * @return Customer
  2824.          */
  2825.         public function setContact9FirstNameKana($contact9FirstNameKana null)
  2826.         {
  2827.             $this->contact9_first_name_kana $contact9FirstNameKana;
  2828.             return $this;
  2829.         }
  2830.         /**
  2831.          * Get contact9FirstNameKana
  2832.          *
  2833.          * @return string|null
  2834.          */
  2835.         public function getContact9FirstNameKana()
  2836.         {
  2837.             return $this->contact9_first_name_kana;
  2838.         }
  2839.         /**
  2840.          * Set contact9Email
  2841.          *
  2842.          * @param string|null $contact9Email
  2843.          *
  2844.          * @return Customer
  2845.          */
  2846.         public function setContact9Email($contact9Email null)
  2847.         {
  2848.             $this->contact9_email $contact9Email;
  2849.             return $this;
  2850.         }
  2851.         /**
  2852.          * Get contact9Email
  2853.          *
  2854.          * @return string|null
  2855.          */
  2856.         public function getContact9Email()
  2857.         {
  2858.             return $this->contact9_email;
  2859.         }
  2860.         /**
  2861.          * Set contact9Phone
  2862.          *
  2863.          * @param string|null $contact9Phone
  2864.          *
  2865.          * @return Customer
  2866.          */
  2867.         public function setContact9Phone($contact9Phone null)
  2868.         {
  2869.             $this->contact9_phone $contact9Phone;
  2870.             return $this;
  2871.         }
  2872.         /**
  2873.          * Get contact9Phone
  2874.          *
  2875.          * @return string|null
  2876.          */
  2877.         public function getContact9Phone()
  2878.         {
  2879.             return $this->contact9_phone;
  2880.         }
  2881.         /**
  2882.          * Set contact10LastName
  2883.          *
  2884.          * @param string|null $contact10LastName
  2885.          *
  2886.          * @return Customer
  2887.          */
  2888.         public function setContact10LastName($contact10LastName null)
  2889.         {
  2890.             $this->contact10_last_name $contact10LastName;
  2891.             return $this;
  2892.         }
  2893.         /**
  2894.          * Get contact10LastName
  2895.          *
  2896.          * @return string|null
  2897.          */
  2898.         public function getContact10LastName()
  2899.         {
  2900.             return $this->contact10_last_name;
  2901.         }
  2902.         /**
  2903.          * Set contact10FirstName
  2904.          *
  2905.          * @param string|null $contact10FirstName
  2906.          *
  2907.          * @return Customer
  2908.          */
  2909.         public function setContact10FirstName($contact10FirstName null)
  2910.         {
  2911.             $this->contact10_first_name $contact10FirstName;
  2912.             return $this;
  2913.         }
  2914.         /**
  2915.          * Get contact10FirstName
  2916.          *
  2917.          * @return string|null
  2918.          */
  2919.         public function getContact10FirstName()
  2920.         {
  2921.             return $this->contact10_first_name;
  2922.         }
  2923.         /**
  2924.          * Set contact10LastNameKana
  2925.          *
  2926.          * @param string|null $contact10LastNameKana
  2927.          *
  2928.          * @return Customer
  2929.          */
  2930.         public function setContact10LastNameKana($contact10LastNameKana null)
  2931.         {
  2932.             $this->contact10_last_name_kana $contact10LastNameKana;
  2933.             return $this;
  2934.         }
  2935.         /**
  2936.          * Get contact10LastNameKana
  2937.          *
  2938.          * @return string|null
  2939.          */
  2940.         public function getContact10LastNameKana()
  2941.         {
  2942.             return $this->contact10_last_name_kana;
  2943.         }
  2944.         /**
  2945.          * Set contact10FirstNameKana
  2946.          *
  2947.          * @param string|null $contact10FirstNameKana
  2948.          *
  2949.          * @return Customer
  2950.          */
  2951.         public function setContact10FirstNameKana($contact10FirstNameKana null)
  2952.         {
  2953.             $this->contact10_first_name_kana $contact10FirstNameKana;
  2954.             return $this;
  2955.         }
  2956.         /**
  2957.          * Get contact10FirstNameKana
  2958.          *
  2959.          * @return string|null
  2960.          */
  2961.         public function getContact10FirstNameKana()
  2962.         {
  2963.             return $this->contact10_first_name_kana;
  2964.         }
  2965.         /**
  2966.          * Set contact10Email
  2967.          *
  2968.          * @param string|null $contact10Email
  2969.          *
  2970.          * @return Customer
  2971.          */
  2972.         public function setContact10Email($contact10Email null)
  2973.         {
  2974.             $this->contact10_email $contact10Email;
  2975.             return $this;
  2976.         }
  2977.         /**
  2978.          * Get contact10Email
  2979.          *
  2980.          * @return string|null
  2981.          */
  2982.         public function getContact10Email()
  2983.         {
  2984.             return $this->contact10_email;
  2985.         }
  2986.         /**
  2987.          * Set contact10Phone
  2988.          *
  2989.          * @param string|null $contact10Phone
  2990.          *
  2991.          * @return Customer
  2992.          */
  2993.         public function setContact10Phone($contact10Phone null)
  2994.         {
  2995.             $this->contact10_phone $contact10Phone;
  2996.             return $this;
  2997.         }
  2998.         /**
  2999.          * Get contact10Phone
  3000.          *
  3001.          * @return string|null
  3002.          */
  3003.         public function getContact10Phone()
  3004.         {
  3005.             return $this->contact10_phone;
  3006.         }
  3007.         /**
  3008.          * String representation of object
  3009.          *
  3010.          * @see http://php.net/manual/en/serializable.serialize.php
  3011.          *
  3012.          * @return string the string representation of the object or null
  3013.          *
  3014.          * @since 5.1.0
  3015.          */
  3016.         public function serialize()
  3017.         {
  3018.             // see https://symfony.com/doc/2.7/security/entity_provider.html#create-your-user-entity
  3019.             // CustomerRepository::loadUserByUsername() で Status をチェックしているため、ここでは不要
  3020.             return serialize([
  3021.                 $this->id,
  3022.                 $this->email,
  3023.                 $this->password,
  3024.                 $this->salt,
  3025.             ]);
  3026.         }
  3027.         /**
  3028.          * Constructs the object
  3029.          *
  3030.          * @see http://php.net/manual/en/serializable.unserialize.php
  3031.          *
  3032.          * @param string $serialized <p>
  3033.          * The string representation of the object.
  3034.          * </p>
  3035.          *
  3036.          * @return void
  3037.          *
  3038.          * @since 5.1.0
  3039.          */
  3040.         public function unserialize($serialized)
  3041.         {
  3042.             list(
  3043.                 $this->id,
  3044.                 $this->email,
  3045.                 $this->password,
  3046.                 $this->salt) = unserialize($serialized);
  3047.         }
  3048.         
  3049.         public function getFullNameWithKana()
  3050.         {
  3051.             $fullNameKanaList = [];
  3052.             $fullNameKanaList["contact0"] = "{$this->name02}{$this->kana02}";
  3053.             for ($i 1$i <= 10$i++) {
  3054.                 $lastNameField "contact{$i}_last_name";
  3055.                 $firstNameField "contact{$i}_first_name";
  3056.                 $lastNameKanaField "contact{$i}_last_name_kana";
  3057.                 $firstNameKanaField "contact{$i}_first_name_kana";
  3058.     
  3059.                 if ($this->$lastNameField && $this->$firstNameField && $this->$lastNameKanaField && $this->$firstNameKanaField) {
  3060.                     $fullNameKanaList["contact{$i}"] = "{$this->$lastNameField}{$this->$firstNameField}{$this->$lastNameKanaField}{$this->$firstNameKanaField}";
  3061.                 }
  3062.             }
  3063.             return $fullNameKanaList;
  3064.         }
  3065.         /**
  3066.          * @ORM\ManyToOne(targetEntity="Eccube\Entity\MemberRank")
  3067.          * @ORM\JoinColumn(name="rank_id", referencedColumnName="rank_id")
  3068.          */
  3069.         private $rank;
  3070.     
  3071.         public function getRank(): ?MemberRank
  3072.         {
  3073.             return $this->rank;
  3074.         }
  3075.     
  3076.         public function setRank(?MemberRank $rank): self
  3077.         {
  3078.             $this->rank $rank;
  3079.     
  3080.             return $this;
  3081.         }
  3082.     }
  3083. }