<?php
/*
* This file is part of EC-CUBE
*
* Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
*
* http://www.ec-cube.co.jp/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Eccube\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\Mapping\ClassMetadata;
if (!class_exists('\Eccube\Entity\Customer')) {
/**
* Customer
*
* @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"})})
* @ORM\InheritanceType("SINGLE_TABLE")
* @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
* @ORM\HasLifecycleCallbacks()
* @ORM\Entity(repositoryClass="Eccube\Repository\CustomerRepository")
*/
class Customer extends \Eccube\Entity\AbstractEntity implements UserInterface, \Serializable
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", options={"unsigned":true})
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="name01", type="string", length=255)
*/
private $name01;
/**
* @var string
*
* @ORM\Column(name="name02", type="string", length=255)
*/
private $name02;
/**
* @var string|null
*
* @ORM\Column(name="kana01", type="string", length=255, nullable=true)
*/
private $kana01;
/**
* @var string|null
*
* @ORM\Column(name="kana02", type="string", length=255, nullable=true)
*/
private $kana02;
/**
* @var string|null
*
* @ORM\Column(name="company_name", type="string", length=255, nullable=false)
*/
private $company_name;
/**
* @var string|null
*
* @ORM\Column(name="representative_name_kana", type="string", length=255, nullable=false)
*/
private $representative_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="postal_code", type="string", length=8, nullable=true)
*/
private $postal_code;
/**
* @var string|null
*
* @ORM\Column(name="addr01", type="string", length=255, nullable=true)
*/
private $addr01;
/**
* @var string|null
*
* @ORM\Column(name="addr02", type="string", length=255, nullable=true)
*/
private $addr02;
/**
* @var string
*
* @ORM\Column(name="email", type="string", length=255)
*/
private $email;
/**
* @var string|null
*
* @ORM\Column(name="phone_number", type="string", length=14, nullable=true)
*/
private $phone_number;
/**
* @var \DateTime|null
*
* @ORM\Column(name="birth", type="datetimetz", nullable=true)
*/
private $birth;
/**
* @Assert\NotBlank()
* @Assert\Length(max=4096)
*/
private $plain_password;
/**
* @var string|null
*
* @ORM\Column(name="password", type="string", length=255)
*/
private $password;
/**
* @var string|null
*
* @ORM\Column(name="salt", type="string", length=255, nullable=true)
*/
private $salt;
/**
* @var string
*
* @ORM\Column(name="secret_key", type="string", length=255)
*/
private $secret_key;
/**
* @var \DateTime|null
*
* @ORM\Column(name="first_buy_date", type="datetimetz", nullable=true)
*/
private $first_buy_date;
/**
* @var \DateTime|null
*
* @ORM\Column(name="last_buy_date", type="datetimetz", nullable=true)
*/
private $last_buy_date;
/**
* @var string|null
*
* @ORM\Column(name="buy_times", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0})
*/
private $buy_times = 0;
/**
* @var string|null
*
* @ORM\Column(name="buy_total", type="decimal", precision=12, scale=2, nullable=true, options={"unsigned":true,"default":0})
*/
private $buy_total = 0;
/**
* @var string|null
*
* @ORM\Column(name="note", type="string", length=4000, nullable=true)
*/
private $note;
/**
* @var string|null
*
* @ORM\Column(name="reset_key", type="string", length=255, nullable=true)
*/
private $reset_key;
/**
* @var \DateTime|null
*
* @ORM\Column(name="reset_expire", type="datetimetz", nullable=true)
*/
private $reset_expire;
/**
* @var string
*
* @ORM\Column(name="point", type="decimal", precision=12, scale=0, options={"unsigned":false,"default":0})
*/
private $point = '0';
/**
* @var \DateTime
*
* @ORM\Column(name="create_date", type="datetimetz")
*/
private $create_date;
/**
* @var \DateTime
*
* @ORM\Column(name="update_date", type="datetimetz")
*/
private $update_date;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="Eccube\Entity\CustomerFavoriteProduct", mappedBy="Customer", cascade={"remove"})
*/
private $CustomerFavoriteProducts;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="Eccube\Entity\CustomerAddress", mappedBy="Customer", cascade={"remove"})
* @ORM\OrderBy({
* "id"="ASC"
* })
*/
private $CustomerAddresses;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="Eccube\Entity\Order", mappedBy="Customer")
*/
private $Orders;
/**
* @var \Eccube\Entity\Master\CustomerStatus
*
* @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\CustomerStatus")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="customer_status_id", referencedColumnName="id")
* })
*/
private $Status;
/**
* @var \Eccube\Entity\Master\Sex
*
* @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Sex")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="sex_id", referencedColumnName="id")
* })
*/
private $Sex;
/**
* @var \Eccube\Entity\Master\Job
*
* @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Job")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="job_id", referencedColumnName="id")
* })
*/
private $Job;
/**
* @var \Eccube\Entity\Master\Country
*
* @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Country")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="country_id", referencedColumnName="id")
* })
*/
private $Country;
/**
* @var \Eccube\Entity\Master\Pref
*
* @ORM\ManyToOne(targetEntity="Eccube\Entity\Master\Pref")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="pref_id", referencedColumnName="id")
* })
*/
private $Pref;
// 追加されたカラム
/**
* @var string|null
*
* @ORM\Column(name="member_rank", type="string", length=255, nullable=true, options={"default" : "ランクなし"})
*/
private $member_rank;
/**
* @var string|null
*
* @ORM\Column(name="amount_category", type="string", length=255, nullable=true, options={"default" : "指定なし"})
*/
private $amount_category;
/**
* @var string|null
*
* @ORM\Column(name="holiday", type="string", length=255, nullable=true)
*/
private $holiday;
/**
* @var string|null
*
* @ORM\Column(name="main_contact_name", type="string", length=255, nullable=false)
*/
private $main_contact_name;
/**
* @var string|null
*
* @ORM\Column(name="main_contact_kana", type="string", length=255, nullable=false)
*/
private $main_contact_kana;
/**
* @var string|null
*
* @ORM\Column(name="main_contact_email", type="string", length=255, nullable=false)
*/
private $main_contact_email;
/**
* @var string|null
*
* @ORM\Column(name="main_contact_phone", type="string", length=14, nullable=false)
*/
private $main_contact_phone;
/**
* @var string|null
*
* @ORM\Column(name="fax", type="string", length=15, nullable=true)
*/
private $fax;
/**
* @var string|null
*
* @ORM\Column(name="join_year", type="string", length=4, nullable=true)
*/
private $join_year;
/**
* @var string|null
*
* @ORM\Column(name="join_month", type="string", length=2, nullable=true)
*/
private $join_month;
/**
* @var string|null
*
* @ORM\Column(name="mail_magazine_type", type="string", length=255, nullable=true, options={"default" : "希望しない"})
*/
private $mail_magazine_type;
/**
* @var string|null
*
* @ORM\Column(name="contact1_last_name", type="string", length=255, nullable=true)
*/
private $contact1_last_name;
/**
* @var string|null
*
* @ORM\Column(name="contact1_first_name", type="string", length=255, nullable=true)
*/
private $contact1_first_name;
/**
* @var string|null
*
* @ORM\Column(name="contact1_last_name_kana", type="string", length=255, nullable=true)
*/
private $contact1_last_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact1_first_name_kana", type="string", length=255, nullable=true)
*/
private $contact1_first_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact1_email", type="string", length=255, nullable=true)
*/
private $contact1_email;
/**
* @var string|null
*
* @ORM\Column(name="contact1_phone", type="string", length=14, nullable=true)
*/
private $contact1_phone;
/**
* @var string|null
*
* @ORM\Column(name="contact2_last_name", type="string", length=255, nullable=true)
*/
private $contact2_last_name;
/**
* @var string|null
*
* @ORM\Column(name="contact2_first_name", type="string", length=255, nullable=true)
*/
private $contact2_first_name;
/**
* @var string|null
*
* @ORM\Column(name="contact2_last_name_kana", type="string", length=255, nullable=true)
*/
private $contact2_last_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact2_first_name_kana", type="string", length=255, nullable=true)
*/
private $contact2_first_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact2_email", type="string", length=255, nullable=true)
*/
private $contact2_email;
/**
* @var string|null
*
* @ORM\Column(name="contact2_phone", type="string", length=14, nullable=true)
*/
private $contact2_phone;
/**
* @var string|null
*
* @ORM\Column(name="contact3_last_name", type="string", length=255, nullable=true)
*/
private $contact3_last_name;
/**
* @var string|null
*
* @ORM\Column(name="contact3_first_name", type="string", length=255, nullable=true)
*/
private $contact3_first_name;
/**
* @var string|null
*
* @ORM\Column(name="contact3_last_name_kana", type="string", length=255, nullable=true)
*/
private $contact3_last_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact3_first_name_kana", type="string", length=255, nullable=true)
*/
private $contact3_first_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact3_email", type="string", length=255, nullable=true)
*/
private $contact3_email;
/**
* @var string|null
*
* @ORM\Column(name="contact3_phone", type="string", length=14, nullable=true)
*/
private $contact3_phone;
// contact4〜contact10 も同様に追加する
/**
* @var string|null
*
* @ORM\Column(name="contact4_last_name", type="string", length=255, nullable=true)
*/
private $contact4_last_name;
/**
* @var string|null
*
* @ORM\Column(name="contact4_first_name", type="string", length=255, nullable=true)
*/
private $contact4_first_name;
/**
* @var string|null
*
* @ORM\Column(name="contact4_last_name_kana", type="string", length=255, nullable=true)
*/
private $contact4_last_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact4_first_name_kana", type="string", length=255, nullable=true)
*/
private $contact4_first_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact4_email", type="string", length=255, nullable=true)
*/
private $contact4_email;
/**
* @var string|null
*
* @ORM\Column(name="contact4_phone", type="string", length=14, nullable=true)
*/
private $contact4_phone;
/**
* @var string|null
*
* @ORM\Column(name="contact5_last_name", type="string", length=255, nullable=true)
*/
private $contact5_last_name;
/**
* @var string|null
*
* @ORM\Column(name="contact5_first_name", type="string", length=255, nullable=true)
*/
private $contact5_first_name;
/**
* @var string|null
*
* @ORM\Column(name="contact5_last_name_kana", type="string", length=255, nullable=true)
*/
private $contact5_last_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact5_first_name_kana", type="string", length=255, nullable=true)
*/
private $contact5_first_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact5_email", type="string", length=255, nullable=true)
*/
private $contact5_email;
/**
* @var string|null
*
* @ORM\Column(name="contact5_phone", type="string", length=14, nullable=true)
*/
private $contact5_phone;
/**
* @var string|null
*
* @ORM\Column(name="contact6_last_name", type="string", length=255, nullable=true)
*/
private $contact6_last_name;
/**
* @var string|null
*
* @ORM\Column(name="contact6_first_name", type="string", length=255, nullable=true)
*/
private $contact6_first_name;
/**
* @var string|null
*
* @ORM\Column(name="contact6_last_name_kana", type="string", length=255, nullable=true)
*/
private $contact6_last_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact6_first_name_kana", type="string", length=255, nullable=true)
*/
private $contact6_first_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact6_email", type="string", length=255, nullable=true)
*/
private $contact6_email;
/**
* @var string|null
*
* @ORM\Column(name="contact6_phone", type="string", length=14, nullable=true)
*/
private $contact6_phone;
/**
* @var string|null
*
* @ORM\Column(name="contact7_last_name", type="string", length=255, nullable=true)
*/
private $contact7_last_name;
/**
* @var string|null
*
* @ORM\Column(name="contact7_first_name", type="string", length=255, nullable=true)
*/
private $contact7_first_name;
/**
* @var string|null
*
* @ORM\Column(name="contact7_last_name_kana", type="string", length=255, nullable=true)
*/
private $contact7_last_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact7_first_name_kana", type="string", length=255, nullable=true)
*/
private $contact7_first_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact7_email", type="string", length=255, nullable=true)
*/
private $contact7_email;
/**
* @var string|null
*
* @ORM\Column(name="contact7_phone", type="string", length=14, nullable=true)
*/
private $contact7_phone;
/**
* @var string|null
*
* @ORM\Column(name="contact8_last_name", type="string", length=255, nullable=true)
*/
private $contact8_last_name;
/**
* @var string|null
*
* @ORM\Column(name="contact8_first_name", type="string", length=255, nullable=true)
*/
private $contact8_first_name;
/**
* @var string|null
*
* @ORM\Column(name="contact8_last_name_kana", type="string", length=255, nullable=true)
*/
private $contact8_last_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact8_first_name_kana", type="string", length=255, nullable=true)
*/
private $contact8_first_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact8_email", type="string", length=255, nullable=true)
*/
private $contact8_email;
/**
* @var string|null
*
* @ORM\Column(name="contact8_phone", type="string", length=14, nullable=true)
*/
private $contact8_phone;
/**
* @var string|null
*
* @ORM\Column(name="contact9_last_name", type="string", length=255, nullable=true)
*/
private $contact9_last_name;
/**
* @var string|null
*
* @ORM\Column(name="contact9_first_name", type="string", length=255, nullable=true)
*/
private $contact9_first_name;
/**
* @var string|null
*
* @ORM\Column(name="contact9_last_name_kana", type="string", length=255, nullable=true)
*/
private $contact9_last_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact9_first_name_kana", type="string", length=255, nullable=true)
*/
private $contact9_first_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact9_email", type="string", length=255, nullable=true)
*/
private $contact9_email;
/**
* @var string|null
*
* @ORM\Column(name="contact9_phone", type="string", length=14, nullable=true)
*/
private $contact9_phone;
/**
* @var string|null
*
* @ORM\Column(name="contact10_last_name", type="string", length=255, nullable=true)
*/
private $contact10_last_name;
/**
* @var string|null
*
* @ORM\Column(name="contact10_first_name", type="string", length=255, nullable=true)
*/
private $contact10_first_name;
/**
* @var string|null
*
* @ORM\Column(name="contact10_last_name_kana", type="string", length=255, nullable=true)
*/
private $contact10_last_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact10_first_name_kana", type="string", length=255, nullable=true)
*/
private $contact10_first_name_kana;
/**
* @var string|null
*
* @ORM\Column(name="contact10_email", type="string", length=255, nullable=true)
*/
private $contact10_email;
/**
* @var string|null
*
* @ORM\Column(name="contact10_phone", type="string", length=14, nullable=true)
*/
private $contact10_phone;
/**
* Constructor
*/
public function __construct()
{
$this->CustomerFavoriteProducts = new \Doctrine\Common\Collections\ArrayCollection();
$this->CustomerAddresses = new \Doctrine\Common\Collections\ArrayCollection();
$this->Orders = new \Doctrine\Common\Collections\ArrayCollection();
$this->setBuyTimes(0);
$this->setBuyTotal(0);
}
/**
* @return string
*/
public function __toString()
{
return (string) ($this->getName01().' '.$this->getName02());
}
/**
* {@inheritdoc}
*/
public function getRoles()
{
return ['ROLE_USER'];
}
/**
* {@inheritdoc}
*/
public function getUsername()
{
return $this->email;
}
/**
* {@inheritdoc}
*/
public function eraseCredentials()
{
}
// TODO: できればFormTypeで行いたい
public static function loadValidatorMetadata(ClassMetadata $metadata)
{
$metadata->addConstraint(new UniqueEntity([
'fields' => 'email',
'message' => 'form_error.customer_already_exists',
'repositoryMethod' => 'getNonWithdrawingCustomers',
]));
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set name01.
*
* @param string $name01
*
* @return Customer
*/
public function setName01($name01)
{
$this->name01 = $name01;
return $this;
}
/**
* Get name01.
*
* @return string
*/
public function getName01()
{
return $this->name01;
}
/**
* Set name02.
*
* @param string $name02
*
* @return Customer
*/
public function setName02($name02)
{
$this->name02 = $name02;
return $this;
}
/**
* Get name02.
*
* @return string
*/
public function getName02()
{
return $this->name02;
}
public function getContactName()
{
return $this->name02;
}
/**
* Set kana01.
*
* @param string|null $kana01
*
* @return Customer
*/
public function setKana01($kana01 = null)
{
$this->kana01 = $kana01;
return $this;
}
/**
* Get kana01.
*
* @return string|null
*/
public function getKana01()
{
return $this->kana01;
}
public function getContactNameKana()
{
return $this->kana02;
}
/**
* Set kana02.
*
* @param string|null $kana02
*
* @return Customer
*/
public function setKana02($kana02 = null)
{
$this->kana02 = $kana02;
return $this;
}
/**
* Get kana02.
*
* @return string|null
*/
public function getKana02()
{
return $this->kana02;
}
/**
* Set companyName.
*
* @param string|null $companyName
*
* @return Customer
*/
public function setCompanyName($companyName = null)
{
$this->company_name = $companyName;
return $this;
}
/**
* Get companyName.
*
* @return string|null
*/
public function getCompanyName()
{
return $this->company_name;
}
/**
* Set representativeNameKana
*
* @param string|null $representativeNameKana
*
* @return Customer
*/
public function setRepresentativeNameKana($representativeNameKana = null)
{
$this->representative_name_kana = $representativeNameKana;
return $this;
}
/**
* Get representativeNameKana
*
* @return string|null
*/
public function getRepresentativeNameKana()
{
return $this->representative_name_kana;
}
/**
* Set postal_code.
*
* @param string|null $postal_code
*
* @return Customer
*/
public function setPostalCode($postal_code = null)
{
$this->postal_code = $postal_code;
return $this;
}
/**
* Get postal_code.
*
* @return string|null
*/
public function getPostalCode()
{
return $this->postal_code;
}
/**
* Set addr01.
*
* @param string|null $addr01
*
* @return Customer
*/
public function setAddr01($addr01 = null)
{
$this->addr01 = $addr01;
return $this;
}
/**
* Get addr01.
*
* @return string|null
*/
public function getAddr01()
{
return $this->addr01;
}
/**
* Set addr02.
*
* @param string|null $addr02
*
* @return Customer
*/
public function setAddr02($addr02 = null)
{
$this->addr02 = $addr02;
return $this;
}
/**
* Get addr02.
*
* @return string|null
*/
public function getAddr02()
{
return $this->addr02;
}
/**
* Set email.
*
* @param string $email
*
* @return Customer
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Get email.
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
function getContactEmail()
{
return $this->email;
}
/**
* Set phone_number.
*
* @param string|null $phone_number
*
* @return Customer
*/
public function setPhoneNumber($phone_number = null)
{
$this->phone_number = $phone_number;
return $this;
}
/**
* Get phone_number.
*
* @return string|null
*/
public function getPhoneNumber()
{
return $this->phone_number;
}
function getContactMobile()
{
return $this->phone_number;
}
/**
* Set birth.
*
* @param \DateTime|null $birth
*
* @return Customer
*/
public function setBirth($birth = null)
{
$this->birth = $birth;
return $this;
}
/**
* Get birth.
*
* @return \DateTime|null
*/
public function getBirth()
{
return $this->birth;
}
/**
* @param string|null $password
*
* @return $this
*/
public function setPlainPassword(?string $password): self
{
$this->plain_password = $password;
return $this;
}
/**
* @return string|null
*/
public function getPlainPassword(): ?string
{
return $this->plain_password;
}
/**
* Set password.
*
* @param string|null $password
*
* @return Customer
*/
public function setPassword($password = null)
{
$this->password = $password;
return $this;
}
/**
* Get password.
*
* @return string|null
*/
public function getPassword()
{
return $this->password;
}
/**
* Set salt.
*
* @param string|null $salt
*
* @return Customer
*/
public function setSalt($salt = null)
{
$this->salt = $salt;
return $this;
}
/**
* Get salt.
*
* @return string|null
*/
public function getSalt()
{
return $this->salt;
}
/**
* Set secretKey.
*
* @param string $secretKey
*
* @return Customer
*/
public function setSecretKey($secretKey)
{
$this->secret_key = $secretKey;
return $this;
}
/**
* Get secretKey.
*
* @return string
*/
public function getSecretKey()
{
return $this->secret_key;
}
/**
* Set firstBuyDate.
*
* @param \DateTime|null $firstBuyDate
*
* @return Customer
*/
public function setFirstBuyDate($firstBuyDate = null)
{
$this->first_buy_date = $firstBuyDate;
return $this;
}
/**
* Get firstBuyDate.
*
* @return \DateTime|null
*/
public function getFirstBuyDate()
{
return $this->first_buy_date;
}
/**
* Set lastBuyDate.
*
* @param \DateTime|null $lastBuyDate
*
* @return Customer
*/
public function setLastBuyDate($lastBuyDate = null)
{
$this->last_buy_date = $lastBuyDate;
return $this;
}
/**
* Get lastBuyDate.
*
* @return \DateTime|null
*/
public function getLastBuyDate()
{
return $this->last_buy_date;
}
/**
* Set buyTimes.
*
* @param string|null $buyTimes
*
* @return Customer
*/
public function setBuyTimes($buyTimes = null)
{
$this->buy_times = $buyTimes;
return $this;
}
/**
* Get buyTimes.
*
* @return string|null
*/
public function getBuyTimes()
{
return $this->buy_times;
}
/**
* Set buyTotal.
*
* @param string|null $buyTotal
*
* @return Customer
*/
public function setBuyTotal($buyTotal = null)
{
$this->buy_total = $buyTotal;
return $this;
}
/**
* Get buyTotal.
*
* @return string|null
*/
public function getBuyTotal()
{
return $this->buy_total;
}
/**
* Set note.
*
* @param string|null $note
*
* @return Customer
*/
public function setNote($note = null)
{
$this->note = $note;
return $this;
}
/**
* Get note.
*
* @return string|null
*/
public function getNote()
{
return $this->note;
}
/**
* Set resetKey.
*
* @param string|null $resetKey
*
* @return Customer
*/
public function setResetKey($resetKey = null)
{
$this->reset_key = $resetKey;
return $this;
}
/**
* Get resetKey.
*
* @return string|null
*/
public function getResetKey()
{
return $this->reset_key;
}
/**
* Set resetExpire.
*
* @param \DateTime|null $resetExpire
*
* @return Customer
*/
public function setResetExpire($resetExpire = null)
{
$this->reset_expire = $resetExpire;
return $this;
}
/**
* Get resetExpire.
*
* @return \DateTime|null
*/
public function getResetExpire()
{
return $this->reset_expire;
}
/**
* Set createDate.
*
* @param \DateTime $createDate
*
* @return Customer
*/
public function setCreateDate($createDate)
{
$this->create_date = $createDate;
return $this;
}
/**
* Get createDate.
*
* @return \DateTime
*/
public function getCreateDate()
{
return $this->create_date;
}
/**
* Set updateDate.
*
* @param \DateTime $updateDate
*
* @return Customer
*/
public function setUpdateDate($updateDate)
{
$this->update_date = $updateDate;
return $this;
}
/**
* Get updateDate.
*
* @return \DateTime
*/
public function getUpdateDate()
{
return $this->update_date;
}
/**
* Add customerFavoriteProduct.
*
* @param \Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProduct
*
* @return Customer
*/
public function addCustomerFavoriteProduct(CustomerFavoriteProduct $customerFavoriteProduct)
{
$this->CustomerFavoriteProducts[] = $customerFavoriteProduct;
return $this;
}
/**
* Remove customerFavoriteProduct.
*
* @param \Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProduct
*
* @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
*/
public function removeCustomerFavoriteProduct(CustomerFavoriteProduct $customerFavoriteProduct)
{
return $this->CustomerFavoriteProducts->removeElement($customerFavoriteProduct);
}
/**
* Get customerFavoriteProducts.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCustomerFavoriteProducts()
{
return $this->CustomerFavoriteProducts;
}
/**
* Add customerAddress.
*
* @param \Eccube\Entity\CustomerAddress $customerAddress
*
* @return Customer
*/
public function addCustomerAddress(CustomerAddress $customerAddress)
{
$this->CustomerAddresses[] = $customerAddress;
return $this;
}
/**
* Remove customerAddress.
*
* @param \Eccube\Entity\CustomerAddress $customerAddress
*
* @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
*/
public function removeCustomerAddress(CustomerAddress $customerAddress)
{
return $this->CustomerAddresses->removeElement($customerAddress);
}
/**
* Get customerAddresses.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCustomerAddresses()
{
return $this->CustomerAddresses;
}
/**
* Add order.
*
* @param \Eccube\Entity\Order $order
*
* @return Customer
*/
public function addOrder(Order $order)
{
$this->Orders[] = $order;
return $this;
}
/**
* Remove order.
*
* @param \Eccube\Entity\Order $order
*
* @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
*/
public function removeOrder(Order $order)
{
return $this->Orders->removeElement($order);
}
/**
* Get orders.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getOrders()
{
return $this->Orders;
}
/**
* Set status.
*
* @param \Eccube\Entity\Master\CustomerStatus|null $status
*
* @return Customer
*/
public function setStatus(Master\CustomerStatus $status = null)
{
$this->Status = $status;
return $this;
}
/**
* Get status.
*
* @return \Eccube\Entity\Master\CustomerStatus|null
*/
public function getStatus()
{
return $this->Status;
}
/**
* Set sex.
*
* @param \Eccube\Entity\Master\Sex|null $sex
*
* @return Customer
*/
public function setSex(Master\Sex $sex = null)
{
$this->Sex = $sex;
return $this;
}
/**
* Get sex.
*
* @return \Eccube\Entity\Master\Sex|null
*/
public function getSex()
{
return $this->Sex;
}
/**
* Set job.
*
* @param \Eccube\Entity\Master\Job|null $job
*
* @return Customer
*/
public function setJob(Master\Job $job = null)
{
$this->Job = $job;
return $this;
}
/**
* Get job.
*
* @return \Eccube\Entity\Master\Job|null
*/
public function getJob()
{
return $this->Job;
}
/**
* Set country.
*
* @param \Eccube\Entity\Master\Country|null $country
*
* @return Customer
*/
public function setCountry(Master\Country $country = null)
{
$this->Country = $country;
return $this;
}
/**
* Get country.
*
* @return \Eccube\Entity\Master\Country|null
*/
public function getCountry()
{
return $this->Country;
}
/**
* Set pref.
*
* @param \Eccube\Entity\Master\Pref|null $pref
*
* @return Customer
*/
public function setPref(Master\Pref $pref = null)
{
$this->Pref = $pref;
return $this;
}
/**
* Get pref.
*
* @return \Eccube\Entity\Master\Pref|null
*/
public function getPref()
{
return $this->Pref;
}
/**
* Set point
*
* @param string $point
*
* @return Customer
*/
public function setPoint($point)
{
$this->point = $point;
return $this;
}
/**
* Get point
*
* @return string
*/
public function getPoint()
{
return $this->point;
}
/**
* Set memberRank
*
* @param string|null $memberRank
*
* @return Customer
*/
public function setMemberRank($memberRank = null)
{
$this->member_rank = $memberRank;
return $this;
}
/**
* Get memberRank
*
* @return string|null
*/
public function getMemberRank()
{
return $this->member_rank;
}
/**
* Set amountCategory
*
* @param string|null $amountCategory
*
* @return Customer
*/
public function setAmountCategory($amountCategory = null)
{
$this->amount_category = $amountCategory;
return $this;
}
/**
* Get amountCategory
*
* @return string|null
*/
public function getAmountCategory()
{
return $this->amount_category;
}
/**
* Set holiday
*
* @param string|null $holiday
*
* @return Customer
*/
public function setHoliday($holiday = null)
{
$this->holiday = $holiday;
return $this;
}
/**
* Get holiday
*
* @return string|null
*/
public function getHoliday()
{
return $this->holiday;
}
/**
* Set mainContactName
*
* @param string|null $mainContactName
*
* @return Customer
*/
public function setMainContactName($mainContactName = null)
{
$this->main_contact_name = $mainContactName;
return $this;
}
/**
* Get mainContactName
*
* @return string|null
*/
public function getMainContactName()
{
return $this->main_contact_name;
}
/**
* Set mainContactKana
*
* @param string|null $mainContactKana
*
* @return Customer
*/
public function setMainContactKana($mainContactKana = null)
{
$this->main_contact_kana = $mainContactKana;
return $this;
}
/**
* Get mainContactKana
*
* @return string|null
*/
public function getMainContactKana()
{
return $this->main_contact_kana;
}
/**
* Set mainContactEmail
*
* @param string|null $mainContactEmail
*
* @return Customer
*/
public function setMainContactEmail($mainContactEmail = null)
{
$this->main_contact_email = $mainContactEmail;
return $this;
}
/**
* Get mainContactEmail
*
* @return string|null
*/
public function getMainContactEmail()
{
return $this->main_contact_email;
}
/**
* Set mainContactPhone
*
* @param string|null $mainContactPhone
*
* @return Customer
*/
public function setMainContactPhone($mainContactPhone = null)
{
$this->main_contact_phone = $mainContactPhone;
return $this;
}
/**
* Get mainContactPhone
*
* @return string|null
*/
public function getMainContactPhone()
{
return $this->main_contact_phone;
}
/**
* Set fax
*
* @param string|null $fax
*
* @return Customer
*/
public function setFax($fax = null)
{
$this->fax = $fax;
return $this;
}
/**
* Get fax
*
* @return string|null
*/
public function getFax()
{
return $this->fax;
}
/**
* Set joinYear
*
* @param string|null $joinYear
*
* @return Customer
*/
public function setJoinYear($joinYear = null)
{
$this->join_year = $joinYear;
return $this;
}
/**
* Get joinYear
*
* @return string|null
*/
public function getJoinYear()
{
return $this->join_year;
}
/**
* Set joinMonth
*
* @param string|null $joinMonth
*
* @return Customer
*/
public function setJoinMonth($joinMonth = null)
{
$this->join_month = $joinMonth;
return $this;
}
/**
* Get joinMonth
*
* @return string|null
*/
public function getJoinMonth()
{
return $this->join_month;
}
/**
* Get join date in y/m format.
*
* @return string|null
*/
public function getJoinDateYm()
{
if (!empty($this->join_year) && !empty($this->join_month)) {
return $this->join_year . '/' . $this->join_month;
}
return null;
}
/**
* Set mailMagazineType
*
* @param string|null $mailMagazineType
*
* @return Customer
*/
public function setMailMagazineType($mailMagazineType = null)
{
$this->mail_magazine_type = $mailMagazineType;
return $this;
}
/**
* Get mailMagazineType
*
* @return string|null
*/
public function getMailMagazineType()
{
return $this->mail_magazine_type;
}
/**
* Set contact1LastName
*
* @param string|null $contact1LastName
*
* @return Customer
*/
public function setContact1LastName($contact1LastName = null)
{
$this->contact1_last_name = $contact1LastName;
return $this;
}
/**
* Get contact1LastName
*
* @return string|null
*/
public function getContact1LastName()
{
return $this->contact1_last_name;
}
/**
* Set contact1FirstName
*
* @param string|null $contact1FirstName
*
* @return Customer
*/
public function setContact1FirstName($contact1FirstName = null)
{
$this->contact1_first_name = $contact1FirstName;
return $this;
}
/**
* Get contact1FirstName
*
* @return string|null
*/
public function getContact1FirstName()
{
return $this->contact1_first_name;
}
/**
* Set contact1LastNameKana
*
* @param string|null $contact1LastNameKana
*
* @return Customer
*/
public function setContact1LastNameKana($contact1LastNameKana = null)
{
$this->contact1_last_name_kana = $contact1LastNameKana;
return $this;
}
/**
* Get contact1LastNameKana
*
* @return string|null
*/
public function getContact1LastNameKana()
{
return $this->contact1_last_name_kana;
}
/**
* Set contact1FirstNameKana
*
* @param string|null $contact1FirstNameKana
*
* @return Customer
*/
public function setContact1FirstNameKana($contact1FirstNameKana = null)
{
$this->contact1_first_name_kana = $contact1FirstNameKana;
return $this;
}
/**
* Get contact1FirstNameKana
*
* @return string|null
*/
public function getContact1FirstNameKana()
{
return $this->contact1_first_name_kana;
}
/**
* Set contact1Email
*
* @param string|null $contact1Email
*
* @return Customer
*/
public function setContact1Email($contact1Email = null)
{
$this->contact1_email = $contact1Email;
return $this;
}
/**
* Get contact1Email
*
* @return string|null
*/
public function getContact1Email()
{
return $this->contact1_email;
}
/**
* Set contact1Phone
*
* @param string|null $contact1Phone
*
* @return Customer
*/
public function setContact1Phone($contact1Phone = null)
{
$this->contact1_phone = $contact1Phone;
return $this;
}
/**
* Get contact1Phone
*
* @return string|null
*/
public function getContact1Phone()
{
return $this->contact1_phone;
}
// contact2〜contact10 も同様に setter と getter を追加
/**
* Set contact2LastName
*
* @param string|null $contact2LastName
*
* @return Customer
*/
public function setContact2LastName($contact2LastName = null)
{
$this->contact2_last_name = $contact2LastName;
return $this;
}
/**
* Get contact2LastName
*
* @return string|null
*/
public function getContact2LastName()
{
return $this->contact2_last_name;
}
/**
* Set contact2FirstName
*
* @param string|null $contact2FirstName
*
* @return Customer
*/
public function setContact2FirstName($contact2FirstName = null)
{
$this->contact2_first_name = $contact2FirstName;
return $this;
}
/**
* Get contact2FirstName
*
* @return string|null
*/
public function getContact2FirstName()
{
return $this->contact2_first_name;
}
/**
* Set contact2LastNameKana
*
* @param string|null $contact2LastNameKana
*
* @return Customer
*/
public function setContact2LastNameKana($contact2LastNameKana = null)
{
$this->contact2_last_name_kana = $contact2LastNameKana;
return $this;
}
/**
* Get contact2LastNameKana
*
* @return string|null
*/
public function getContact2LastNameKana()
{
return $this->contact2_last_name_kana;
}
/**
* Set contact2FirstNameKana
*
* @param string|null $contact2FirstNameKana
*
* @return Customer
*/
public function setContact2FirstNameKana($contact2FirstNameKana = null)
{
$this->contact2_first_name_kana = $contact2FirstNameKana;
return $this;
}
/**
* Get contact2FirstNameKana
*
* @return string|null
*/
public function getContact2FirstNameKana()
{
return $this->contact2_first_name_kana;
}
/**
* Set contact2Email
*
* @param string|null $contact2Email
*
* @return Customer
*/
public function setContact2Email($contact2Email = null)
{
$this->contact2_email = $contact2Email;
return $this;
}
/**
* Get contact2Email
*
* @return string|null
*/
public function getContact2Email()
{
return $this->contact2_email;
}
/**
* Set contact2Phone
*
* @param string|null $contact2Phone
*
* @return Customer
*/
public function setContact2Phone($contact2Phone = null)
{
$this->contact2_phone = $contact2Phone;
return $this;
}
/**
* Get contact2Phone
*
* @return string|null
*/
public function getContact2Phone()
{
return $this->contact2_phone;
}
/**
* Set contact3LastName
*
* @param string|null $contact3LastName
*
* @return Customer
*/
public function setContact3LastName($contact3LastName = null)
{
$this->contact3_last_name = $contact3LastName;
return $this;
}
/**
* Get contact3LastName
*
* @return string|null
*/
public function getContact3LastName()
{
return $this->contact3_last_name;
}
/**
* Set contact3FirstName
*
* @param string|null $contact3FirstName
*
* @return Customer
*/
public function setContact3FirstName($contact3FirstName = null)
{
$this->contact3_first_name = $contact3FirstName;
return $this;
}
/**
* Get contact3FirstName
*
* @return string|null
*/
public function getContact3FirstName()
{
return $this->contact3_first_name;
}
/**
* Set contact3LastNameKana
*
* @param string|null $contact3LastNameKana
*
* @return Customer
*/
public function setContact3LastNameKana($contact3LastNameKana = null)
{
$this->contact3_last_name_kana = $contact3LastNameKana;
return $this;
}
/**
* Get contact3LastNameKana
*
* @return string|null
*/
public function getContact3LastNameKana()
{
return $this->contact3_last_name_kana;
}
/**
* Set contact3FirstNameKana
*
* @param string|null $contact3FirstNameKana
*
* @return Customer
*/
public function setContact3FirstNameKana($contact3FirstNameKana = null)
{
$this->contact3_first_name_kana = $contact3FirstNameKana;
return $this;
}
/**
* Get contact3FirstNameKana
*
* @return string|null
*/
public function getContact3FirstNameKana()
{
return $this->contact3_first_name_kana;
}
/**
* Set contact3Email
*
* @param string|null $contact3Email
*
* @return Customer
*/
public function setContact3Email($contact3Email = null)
{
$this->contact3_email = $contact3Email;
return $this;
}
/**
* Get contact3Email
*
* @return string|null
*/
public function getContact3Email()
{
return $this->contact3_email;
}
/**
* Set contact3Phone
*
* @param string|null $contact3Phone
*
* @return Customer
*/
public function setContact3Phone($contact3Phone = null)
{
$this->contact3_phone = $contact3Phone;
return $this;
}
/**
* Get contact3Phone
*
* @return string|null
*/
public function getContact3Phone()
{
return $this->contact3_phone;
}
// contact4〜contact10 も同様に setter と getter を追加
/**
* Set contact4LastName
*
* @param string|null $contact4LastName
*
* @return Customer
*/
public function setContact4LastName($contact4LastName = null)
{
$this->contact4_last_name = $contact4LastName;
return $this;
}
/**
* Get contact4LastName
*
* @return string|null
*/
public function getContact4LastName()
{
return $this->contact4_last_name;
}
/**
* Set contact4FirstName
*
* @param string|null $contact4FirstName
*
* @return Customer
*/
public function setContact4FirstName($contact4FirstName = null)
{
$this->contact4_first_name = $contact4FirstName;
return $this;
}
/**
* Get contact4FirstName
*
* @return string|null
*/
public function getContact4FirstName()
{
return $this->contact4_first_name;
}
/**
* Set contact4LastNameKana
*
* @param string|null $contact4LastNameKana
*
* @return Customer
*/
public function setContact4LastNameKana($contact4LastNameKana = null)
{
$this->contact4_last_name_kana = $contact4LastNameKana;
return $this;
}
/**
* Get contact4LastNameKana
*
* @return string|null
*/
public function getContact4LastNameKana()
{
return $this->contact4_last_name_kana;
}
/**
* Set contact4FirstNameKana
*
* @param string|null $contact4FirstNameKana
*
* @return Customer
*/
public function setContact4FirstNameKana($contact4FirstNameKana = null)
{
$this->contact4_first_name_kana = $contact4FirstNameKana;
return $this;
}
/**
* Get contact4FirstNameKana
*
* @return string|null
*/
public function getContact4FirstNameKana()
{
return $this->contact4_first_name_kana;
}
/**
* Set contact4Email
*
* @param string|null $contact4Email
*
* @return Customer
*/
public function setContact4Email($contact4Email = null)
{
$this->contact4_email = $contact4Email;
return $this;
}
/**
* Get contact4Email
*
* @return string|null
*/
public function getContact4Email()
{
return $this->contact4_email;
}
/**
* Set contact4Phone
*
* @param string|null $contact4Phone
*
* @return Customer
*/
public function setContact4Phone($contact4Phone = null)
{
$this->contact4_phone = $contact4Phone;
return $this;
}
/**
* Get contact4Phone
*
* @return string|null
*/
public function getContact4Phone()
{
return $this->contact4_phone;
}
/**
* Set contact5LastName
*
* @param string|null $contact5LastName
*
* @return Customer
*/
public function setContact5LastName($contact5LastName = null)
{
$this->contact5_last_name = $contact5LastName;
return $this;
}
/**
* Get contact5LastName
*
* @return string|null
*/
public function getContact5LastName()
{
return $this->contact5_last_name;
}
/**
* Set contact5FirstName
*
* @param string|null $contact5FirstName
*
* @return Customer
*/
public function setContact5FirstName($contact5FirstName = null)
{
$this->contact5_first_name = $contact5FirstName;
return $this;
}
/**
* Get contact5FirstName
*
* @return string|null
*/
public function getContact5FirstName()
{
return $this->contact5_first_name;
}
/**
* Set contact5LastNameKana
*
* @param string|null $contact5LastNameKana
*
* @return Customer
*/
public function setContact5LastNameKana($contact5LastNameKana = null)
{
$this->contact5_last_name_kana = $contact5LastNameKana;
return $this;
}
/**
* Get contact5LastNameKana
*
* @return string|null
*/
public function getContact5LastNameKana()
{
return $this->contact5_last_name_kana;
}
/**
* Set contact5FirstNameKana
*
* @param string|null $contact5FirstNameKana
*
* @return Customer
*/
public function setContact5FirstNameKana($contact5FirstNameKana = null)
{
$this->contact5_first_name_kana = $contact5FirstNameKana;
return $this;
}
/**
* Get contact5FirstNameKana
*
* @return string|null
*/
public function getContact5FirstNameKana()
{
return $this->contact5_first_name_kana;
}
/**
* Set contact5Email
*
* @param string|null $contact5Email
*
* @return Customer
*/
public function setContact5Email($contact5Email = null)
{
$this->contact5_email = $contact5Email;
return $this;
}
/**
* Get contact5Email
*
* @return string|null
*/
public function getContact5Email()
{
return $this->contact5_email;
}
/**
* Set contact5Phone
*
* @param string|null $contact5Phone
*
* @return Customer
*/
public function setContact5Phone($contact5Phone = null)
{
$this->contact5_phone = $contact5Phone;
return $this;
}
/**
* Get contact5Phone
*
* @return string|null
*/
public function getContact5Phone()
{
return $this->contact5_phone;
}
/**
* Set contact6LastName
*
* @param string|null $contact6LastName
*
* @return Customer
*/
public function setContact6LastName($contact6LastName = null)
{
$this->contact6_last_name = $contact6LastName;
return $this;
}
/**
* Get contact6LastName
*
* @return string|null
*/
public function getContact6LastName()
{
return $this->contact6_last_name;
}
/**
* Set contact6FirstName
*
* @param string|null $contact6FirstName
*
* @return Customer
*/
public function setContact6FirstName($contact6FirstName = null)
{
$this->contact6_first_name = $contact6FirstName;
return $this;
}
/**
* Get contact6FirstName
*
* @return string|null
*/
public function getContact6FirstName()
{
return $this->contact6_first_name;
}
/**
* Set contact6LastNameKana
*
* @param string|null $contact6LastNameKana
*
* @return Customer
*/
public function setContact6LastNameKana($contact6LastNameKana = null)
{
$this->contact6_last_name_kana = $contact6LastNameKana;
return $this;
}
/**
* Get contact6LastNameKana
*
* @return string|null
*/
public function getContact6LastNameKana()
{
return $this->contact6_last_name_kana;
}
/**
* Set contact6FirstNameKana
*
* @param string|null $contact6FirstNameKana
*
* @return Customer
*/
public function setContact6FirstNameKana($contact6FirstNameKana = null)
{
$this->contact6_first_name_kana = $contact6FirstNameKana;
return $this;
}
/**
* Get contact6FirstNameKana
*
* @return string|null
*/
public function getContact6FirstNameKana()
{
return $this->contact6_first_name_kana;
}
/**
* Set contact6Email
*
* @param string|null $contact6Email
*
* @return Customer
*/
public function setContact6Email($contact6Email = null)
{
$this->contact6_email = $contact6Email;
return $this;
}
/**
* Get contact6Email
*
* @return string|null
*/
public function getContact6Email()
{
return $this->contact6_email;
}
/**
* Set contact6Phone
*
* @param string|null $contact6Phone
*
* @return Customer
*/
public function setContact6Phone($contact6Phone = null)
{
$this->contact6_phone = $contact6Phone;
return $this;
}
/**
* Get contact6Phone
*
* @return string|null
*/
public function getContact6Phone()
{
return $this->contact6_phone;
}
/**
* Set contact7LastName
*
* @param string|null $contact7LastName
*
* @return Customer
*/
public function setContact7LastName($contact7LastName = null)
{
$this->contact7_last_name = $contact7LastName;
return $this;
}
/**
* Get contact7LastName
*
* @return string|null
*/
public function getContact7LastName()
{
return $this->contact7_last_name;
}
/**
* Set contact7FirstName
*
* @param string|null $contact7FirstName
*
* @return Customer
*/
public function setContact7FirstName($contact7FirstName = null)
{
$this->contact7_first_name = $contact7FirstName;
return $this;
}
/**
* Get contact7FirstName
*
* @return string|null
*/
public function getContact7FirstName()
{
return $this->contact7_first_name;
}
/**
* Set contact7LastNameKana
*
* @param string|null $contact7LastNameKana
*
* @return Customer
*/
public function setContact7LastNameKana($contact7LastNameKana = null)
{
$this->contact7_last_name_kana = $contact7LastNameKana;
return $this;
}
/**
* Get contact7LastNameKana
*
* @return string|null
*/
public function getContact7LastNameKana()
{
return $this->contact7_last_name_kana;
}
/**
* Set contact7FirstNameKana
*
* @param string|null $contact7FirstNameKana
*
* @return Customer
*/
public function setContact7FirstNameKana($contact7FirstNameKana = null)
{
$this->contact7_first_name_kana = $contact7FirstNameKana;
return $this;
}
/**
* Get contact7FirstNameKana
*
* @return string|null
*/
public function getContact7FirstNameKana()
{
return $this->contact7_first_name_kana;
}
/**
* Set contact7Email
*
* @param string|null $contact7Email
*
* @return Customer
*/
public function setContact7Email($contact7Email = null)
{
$this->contact7_email = $contact7Email;
return $this;
}
/**
* Get contact7Email
*
* @return string|null
*/
public function getContact7Email()
{
return $this->contact7_email;
}
/**
* Set contact7Phone
*
* @param string|null $contact7Phone
*
* @return Customer
*/
public function setContact7Phone($contact7Phone = null)
{
$this->contact7_phone = $contact7Phone;
return $this;
}
/**
* Get contact7Phone
*
* @return string|null
*/
public function getContact7Phone()
{
return $this->contact7_phone;
}
/**
* Set contact8LastName
*
* @param string|null $contact8LastName
*
* @return Customer
*/
public function setContact8LastName($contact8LastName = null)
{
$this->contact8_last_name = $contact8LastName;
return $this;
}
/**
* Get contact8LastName
*
* @return string|null
*/
public function getContact8LastName()
{
return $this->contact8_last_name;
}
/**
* Set contact8FirstName
*
* @param string|null $contact8FirstName
*
* @return Customer
*/
public function setContact8FirstName($contact8FirstName = null)
{
$this->contact8_first_name = $contact8FirstName;
return $this;
}
/**
* Get contact8FirstName
*
* @return string|null
*/
public function getContact8FirstName()
{
return $this->contact8_first_name;
}
/**
* Set contact8LastNameKana
*
* @param string|null $contact8LastNameKana
*
* @return Customer
*/
public function setContact8LastNameKana($contact8LastNameKana = null)
{
$this->contact8_last_name_kana = $contact8LastNameKana;
return $this;
}
/**
* Get contact8LastNameKana
*
* @return string|null
*/
public function getContact8LastNameKana()
{
return $this->contact8_last_name_kana;
}
/**
* Set contact8FirstNameKana
*
* @param string|null $contact8FirstNameKana
*
* @return Customer
*/
public function setContact8FirstNameKana($contact8FirstNameKana = null)
{
$this->contact8_first_name_kana = $contact8FirstNameKana;
return $this;
}
/**
* Get contact8FirstNameKana
*
* @return string|null
*/
public function getContact8FirstNameKana()
{
return $this->contact8_first_name_kana;
}
/**
* Set contact8Email
*
* @param string|null $contact8Email
*
* @return Customer
*/
public function setContact8Email($contact8Email = null)
{
$this->contact8_email = $contact8Email;
return $this;
}
/**
* Get contact8Email
*
* @return string|null
*/
public function getContact8Email()
{
return $this->contact8_email;
}
/**
* Set contact8Phone
*
* @param string|null $contact8Phone
*
* @return Customer
*/
public function setContact8Phone($contact8Phone = null)
{
$this->contact8_phone = $contact8Phone;
return $this;
}
/**
* Get contact8Phone
*
* @return string|null
*/
public function getContact8Phone()
{
return $this->contact8_phone;
}
/**
* Set contact9LastName
*
* @param string|null $contact9LastName
*
* @return Customer
*/
public function setContact9LastName($contact9LastName = null)
{
$this->contact9_last_name = $contact9LastName;
return $this;
}
/**
* Get contact9LastName
*
* @return string|null
*/
public function getContact9LastName()
{
return $this->contact9_last_name;
}
/**
* Set contact9FirstName
*
* @param string|null $contact9FirstName
*
* @return Customer
*/
public function setContact9FirstName($contact9FirstName = null)
{
$this->contact9_first_name = $contact9FirstName;
return $this;
}
/**
* Get contact9FirstName
*
* @return string|null
*/
public function getContact9FirstName()
{
return $this->contact9_first_name;
}
/**
* Set contact9LastNameKana
*
* @param string|null $contact9LastNameKana
*
* @return Customer
*/
public function setContact9LastNameKana($contact9LastNameKana = null)
{
$this->contact9_last_name_kana = $contact9LastNameKana;
return $this;
}
/**
* Get contact9LastNameKana
*
* @return string|null
*/
public function getContact9LastNameKana()
{
return $this->contact9_last_name_kana;
}
/**
* Set contact9FirstNameKana
*
* @param string|null $contact9FirstNameKana
*
* @return Customer
*/
public function setContact9FirstNameKana($contact9FirstNameKana = null)
{
$this->contact9_first_name_kana = $contact9FirstNameKana;
return $this;
}
/**
* Get contact9FirstNameKana
*
* @return string|null
*/
public function getContact9FirstNameKana()
{
return $this->contact9_first_name_kana;
}
/**
* Set contact9Email
*
* @param string|null $contact9Email
*
* @return Customer
*/
public function setContact9Email($contact9Email = null)
{
$this->contact9_email = $contact9Email;
return $this;
}
/**
* Get contact9Email
*
* @return string|null
*/
public function getContact9Email()
{
return $this->contact9_email;
}
/**
* Set contact9Phone
*
* @param string|null $contact9Phone
*
* @return Customer
*/
public function setContact9Phone($contact9Phone = null)
{
$this->contact9_phone = $contact9Phone;
return $this;
}
/**
* Get contact9Phone
*
* @return string|null
*/
public function getContact9Phone()
{
return $this->contact9_phone;
}
/**
* Set contact10LastName
*
* @param string|null $contact10LastName
*
* @return Customer
*/
public function setContact10LastName($contact10LastName = null)
{
$this->contact10_last_name = $contact10LastName;
return $this;
}
/**
* Get contact10LastName
*
* @return string|null
*/
public function getContact10LastName()
{
return $this->contact10_last_name;
}
/**
* Set contact10FirstName
*
* @param string|null $contact10FirstName
*
* @return Customer
*/
public function setContact10FirstName($contact10FirstName = null)
{
$this->contact10_first_name = $contact10FirstName;
return $this;
}
/**
* Get contact10FirstName
*
* @return string|null
*/
public function getContact10FirstName()
{
return $this->contact10_first_name;
}
/**
* Set contact10LastNameKana
*
* @param string|null $contact10LastNameKana
*
* @return Customer
*/
public function setContact10LastNameKana($contact10LastNameKana = null)
{
$this->contact10_last_name_kana = $contact10LastNameKana;
return $this;
}
/**
* Get contact10LastNameKana
*
* @return string|null
*/
public function getContact10LastNameKana()
{
return $this->contact10_last_name_kana;
}
/**
* Set contact10FirstNameKana
*
* @param string|null $contact10FirstNameKana
*
* @return Customer
*/
public function setContact10FirstNameKana($contact10FirstNameKana = null)
{
$this->contact10_first_name_kana = $contact10FirstNameKana;
return $this;
}
/**
* Get contact10FirstNameKana
*
* @return string|null
*/
public function getContact10FirstNameKana()
{
return $this->contact10_first_name_kana;
}
/**
* Set contact10Email
*
* @param string|null $contact10Email
*
* @return Customer
*/
public function setContact10Email($contact10Email = null)
{
$this->contact10_email = $contact10Email;
return $this;
}
/**
* Get contact10Email
*
* @return string|null
*/
public function getContact10Email()
{
return $this->contact10_email;
}
/**
* Set contact10Phone
*
* @param string|null $contact10Phone
*
* @return Customer
*/
public function setContact10Phone($contact10Phone = null)
{
$this->contact10_phone = $contact10Phone;
return $this;
}
/**
* Get contact10Phone
*
* @return string|null
*/
public function getContact10Phone()
{
return $this->contact10_phone;
}
/**
* String representation of object
*
* @see http://php.net/manual/en/serializable.serialize.php
*
* @return string the string representation of the object or null
*
* @since 5.1.0
*/
public function serialize()
{
// see https://symfony.com/doc/2.7/security/entity_provider.html#create-your-user-entity
// CustomerRepository::loadUserByUsername() で Status をチェックしているため、ここでは不要
return serialize([
$this->id,
$this->email,
$this->password,
$this->salt,
]);
}
/**
* Constructs the object
*
* @see http://php.net/manual/en/serializable.unserialize.php
*
* @param string $serialized <p>
* The string representation of the object.
* </p>
*
* @return void
*
* @since 5.1.0
*/
public function unserialize($serialized)
{
list(
$this->id,
$this->email,
$this->password,
$this->salt) = unserialize($serialized);
}
public function getFullNameWithKana()
{
$fullNameKanaList = [];
$fullNameKanaList["contact0"] = "{$this->name02}/{$this->kana02}";
for ($i = 1; $i <= 10; $i++) {
$lastNameField = "contact{$i}_last_name";
$firstNameField = "contact{$i}_first_name";
$lastNameKanaField = "contact{$i}_last_name_kana";
$firstNameKanaField = "contact{$i}_first_name_kana";
if ($this->$lastNameField && $this->$firstNameField && $this->$lastNameKanaField && $this->$firstNameKanaField) {
$fullNameKanaList["contact{$i}"] = "{$this->$lastNameField}{$this->$firstNameField}/{$this->$lastNameKanaField}{$this->$firstNameKanaField}";
}
}
return $fullNameKanaList;
}
/**
* @ORM\ManyToOne(targetEntity="Eccube\Entity\MemberRank")
* @ORM\JoinColumn(name="rank_id", referencedColumnName="rank_id")
*/
private $rank;
public function getRank(): ?MemberRank
{
return $this->rank;
}
public function setRank(?MemberRank $rank): self
{
$this->rank = $rank;
return $this;
}
}
}