Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
76.40% |
68 / 89 |
CRAP | |
75.71% |
106 / 140 |
| Customer | |
0.00% |
0 / 1 |
|
76.40% |
68 / 89 |
202.46 | |
75.71% |
106 / 140 |
| __construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
7 / 7 |
|||
| __toString | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| getRoles | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| getUsername | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| eraseCredentials | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| loadValidatorMetadata | |
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
|||
| getId | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setName01 | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getName01 | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setName02 | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getName02 | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setKana01 | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getKana01 | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setKana02 | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getKana02 | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setCompanyName | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getCompanyName | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setZip01 | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getZip01 | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setZip02 | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getZip02 | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setZipcode | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| setAddr01 | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getAddr01 | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setAddr02 | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getAddr02 | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setEmail | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getEmail | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setTel01 | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getTel01 | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setTel02 | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getTel02 | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setTel03 | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getTel03 | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setFax01 | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getFax01 | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setFax02 | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getFax02 | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setFax03 | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getFax03 | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setBirth | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getBirth | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setPassword | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getPassword | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setSalt | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getSalt | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setSecretKey | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getSecretKey | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setFirstBuyDate | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getFirstBuyDate | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setLastBuyDate | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getLastBuyDate | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| setBuyTimes | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getBuyTimes | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setBuyTotal | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getBuyTotal | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setNote | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getNote | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setResetKey | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getResetKey | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setResetExpire | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getResetExpire | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| setStatus | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getStatus | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setCreateDate | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getCreateDate | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| setUpdateDate | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getUpdateDate | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| setDelFlg | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getDelFlg | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| addCustomerFavoriteProduct | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| removeCustomerFavoriteProduct | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getCustomerFavoriteProducts | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| addOrder | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| removeOrder | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getOrders | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| addCustomerAddresses | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| removeCustomerAddress | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getCustomerAddresses | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setSex | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getSex | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setJob | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getJob | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setCountry | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getCountry | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setPref | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| getPref | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| getZipcode | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| addCustomerAddress | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| <?php | |
| /* | |
| * This file is part of EC-CUBE | |
| * | |
| * Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved. | |
| * | |
| * http://www.lockon.co.jp/ | |
| * | |
| * This program is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU General Public License | |
| * as published by the Free Software Foundation; either version 2 | |
| * of the License, or (at your option) any later version. | |
| * | |
| * This program is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| * GNU General Public License for more details. | |
| * | |
| * You should have received a copy of the GNU General Public License | |
| * along with this program; if not, write to the Free Software | |
| * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
| */ | |
| namespace Eccube\Entity; | |
| use Doctrine\ORM\Mapping as ORM; | |
| use Eccube\Common\Constant; | |
| use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; | |
| use Symfony\Component\Security\Core\User\UserInterface; | |
| use Symfony\Component\Validator\Mapping\ClassMetadata; | |
| /** | |
| * Customer | |
| * | |
| * @UniqueEntity("email") | |
| */ | |
| class Customer extends \Eccube\Entity\AbstractEntity implements UserInterface | |
| { | |
| /** | |
| * @var integer | |
| */ | |
| private $id; | |
| /** | |
| * @var string | |
| */ | |
| private $name01; | |
| /** | |
| * @var string | |
| */ | |
| private $name02; | |
| /** | |
| * @var string | |
| */ | |
| private $kana01; | |
| /** | |
| * @var string | |
| */ | |
| private $kana02; | |
| /** | |
| * @var string | |
| */ | |
| private $company_name; | |
| /** | |
| * @var string | |
| */ | |
| private $zip01; | |
| /** | |
| * @var string | |
| */ | |
| private $zip02; | |
| /** | |
| * @var string | |
| */ | |
| private $zipcode; | |
| /** | |
| * @var string | |
| */ | |
| private $addr01; | |
| /** | |
| * @var string | |
| */ | |
| private $addr02; | |
| /** | |
| * @var string | |
| */ | |
| private $email; | |
| /** | |
| * @var string | |
| */ | |
| private $tel01; | |
| /** | |
| * @var string | |
| */ | |
| private $tel02; | |
| /** | |
| * @var string | |
| */ | |
| private $tel03; | |
| /** | |
| * @var string | |
| */ | |
| private $fax01; | |
| /** | |
| * @var string | |
| */ | |
| private $fax02; | |
| /** | |
| * @var string | |
| */ | |
| private $fax03; | |
| /** | |
| * @var \DateTime | |
| */ | |
| private $birth; | |
| /** | |
| * @var string | |
| */ | |
| private $password; | |
| /** | |
| * @var string | |
| */ | |
| private $salt; | |
| /** | |
| * @var string | |
| */ | |
| private $secret_key; | |
| /** | |
| * @var \DateTime | |
| */ | |
| private $first_buy_date; | |
| /** | |
| * @var \DateTime | |
| */ | |
| private $last_buy_date; | |
| /** | |
| * @var string | |
| */ | |
| private $buy_times; | |
| /** | |
| * @var string | |
| */ | |
| private $buy_total; | |
| /** | |
| * @var string | |
| */ | |
| private $note; | |
| /** | |
| * @var string | |
| */ | |
| private $reset_key; | |
| /** | |
| * @var \DateTime | |
| */ | |
| private $reset_expire; | |
| /** | |
| * @var \Eccube\Entity\Master\CustomerStatus | |
| */ | |
| private $Status; | |
| /** | |
| * @var \DateTime | |
| */ | |
| private $create_date; | |
| /** | |
| * @var \DateTime | |
| */ | |
| private $update_date; | |
| /** | |
| * @var integer | |
| */ | |
| private $del_flg; | |
| /** | |
| * @var \Eccube\Entity\Master\Sex | |
| */ | |
| private $Sex; | |
| /** | |
| * @var \Eccube\Entity\Master\Job | |
| */ | |
| private $Job; | |
| /** | |
| * @var \Eccube\Entity\Master\Country | |
| */ | |
| private $Country; | |
| /** | |
| * @var \Eccube\Entity\Master\Pref | |
| */ | |
| private $Pref; | |
| /** | |
| * @var \Doctrine\Common\Collections\Collection | |
| */ | |
| private $CustomerFavoriteProducts; | |
| /** | |
| * @var \Doctrine\Common\Collections\Collection | |
| */ | |
| private $CustomerAddresses; | |
| /** | |
| * @var \Doctrine\Common\Collections\Collection | |
| */ | |
| private $Orders; | |
| /** | |
| * 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); | |
| $this->setDelFlg(Constant::DISABLED); | |
| } | |
| /** | |
| * @return string | |
| */ | |
| public function __toString() | |
| { | |
| return $this->getName01() . ' ' . $this->getName02(); | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function getRoles() | |
| { | |
| return array('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(array( | |
| 'fields' => 'email', | |
| 'message' => '既に利用されているメールアドレスです' | |
| ))); | |
| } | |
| /** | |
| * Get id | |
| * | |
| * @return integer | |
| */ | |
| 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; | |
| } | |
| /** | |
| * Set kana01 | |
| * | |
| * @param string $kana01 | |
| * @return Customer | |
| */ | |
| public function setKana01($kana01) | |
| { | |
| $this->kana01 = $kana01; | |
| return $this; | |
| } | |
| /** | |
| * Get kana01 | |
| * | |
| * @return string | |
| */ | |
| public function getKana01() | |
| { | |
| return $this->kana01; | |
| } | |
| /** | |
| * Set kana02 | |
| * | |
| * @param string $kana02 | |
| * @return Customer | |
| */ | |
| public function setKana02($kana02) | |
| { | |
| $this->kana02 = $kana02; | |
| return $this; | |
| } | |
| /** | |
| * Get kana02 | |
| * | |
| * @return string | |
| */ | |
| public function getKana02() | |
| { | |
| return $this->kana02; | |
| } | |
| /** | |
| * Set company_name | |
| * | |
| * @param string $companyName | |
| * @return Customer | |
| */ | |
| public function setCompanyName($companyName) | |
| { | |
| $this->company_name = $companyName; | |
| return $this; | |
| } | |
| /** | |
| * Get company_name | |
| * | |
| * @return string | |
| */ | |
| public function getCompanyName() | |
| { | |
| return $this->company_name; | |
| } | |
| /** | |
| * Set zip01 | |
| * | |
| * @param string $zip01 | |
| * @return Customer | |
| */ | |
| public function setZip01($zip01) | |
| { | |
| $this->zip01 = $zip01; | |
| return $this; | |
| } | |
| /** | |
| * Get zip01 | |
| * | |
| * @return string | |
| */ | |
| public function getZip01() | |
| { | |
| return $this->zip01; | |
| } | |
| /** | |
| * Set zip02 | |
| * | |
| * @param string $zip02 | |
| * @return Customer | |
| */ | |
| public function setZip02($zip02) | |
| { | |
| $this->zip02 = $zip02; | |
| return $this; | |
| } | |
| /** | |
| * Get zip02 | |
| * | |
| * @return string | |
| */ | |
| public function getZip02() | |
| { | |
| return $this->zip02; | |
| } | |
| /** | |
| * Set zipcode | |
| * | |
| * @param string $zipcode | |
| * @return Customer | |
| */ | |
| public function setZipcode($zipcode) | |
| { | |
| $this->zipcode = $zipcode; | |
| return $this; | |
| } | |
| /** | |
| * Set addr01 | |
| * | |
| * @param string $addr01 | |
| * @return Customer | |
| */ | |
| public function setAddr01($addr01) | |
| { | |
| $this->addr01 = $addr01; | |
| return $this; | |
| } | |
| /** | |
| * Get addr01 | |
| * | |
| * @return string | |
| */ | |
| public function getAddr01() | |
| { | |
| return $this->addr01; | |
| } | |
| /** | |
| * Set addr02 | |
| * | |
| * @param string $addr02 | |
| * @return Customer | |
| */ | |
| public function setAddr02($addr02) | |
| { | |
| $this->addr02 = $addr02; | |
| return $this; | |
| } | |
| /** | |
| * Get addr02 | |
| * | |
| * @return string | |
| */ | |
| 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; | |
| } | |
| /** | |
| * Set tel01 | |
| * | |
| * @param string $tel01 | |
| * @return Customer | |
| */ | |
| public function setTel01($tel01) | |
| { | |
| $this->tel01 = $tel01; | |
| return $this; | |
| } | |
| /** | |
| * Get tel01 | |
| * | |
| * @return string | |
| */ | |
| public function getTel01() | |
| { | |
| return $this->tel01; | |
| } | |
| /** | |
| * Set tel02 | |
| * | |
| * @param string $tel02 | |
| * @return Customer | |
| */ | |
| public function setTel02($tel02) | |
| { | |
| $this->tel02 = $tel02; | |
| return $this; | |
| } | |
| /** | |
| * Get tel02 | |
| * | |
| * @return string | |
| */ | |
| public function getTel02() | |
| { | |
| return $this->tel02; | |
| } | |
| /** | |
| * Set tel03 | |
| * | |
| * @param string $tel03 | |
| * @return Customer | |
| */ | |
| public function setTel03($tel03) | |
| { | |
| $this->tel03 = $tel03; | |
| return $this; | |
| } | |
| /** | |
| * Get tel03 | |
| * | |
| * @return string | |
| */ | |
| public function getTel03() | |
| { | |
| return $this->tel03; | |
| } | |
| /** | |
| * Set fax01 | |
| * | |
| * @param string $fax01 | |
| * @return Customer | |
| */ | |
| public function setFax01($fax01) | |
| { | |
| $this->fax01 = $fax01; | |
| return $this; | |
| } | |
| /** | |
| * Get fax01 | |
| * | |
| * @return string | |
| */ | |
| public function getFax01() | |
| { | |
| return $this->fax01; | |
| } | |
| /** | |
| * Set fax02 | |
| * | |
| * @param string $fax02 | |
| * @return Customer | |
| */ | |
| public function setFax02($fax02) | |
| { | |
| $this->fax02 = $fax02; | |
| return $this; | |
| } | |
| /** | |
| * Get fax02 | |
| * | |
| * @return string | |
| */ | |
| public function getFax02() | |
| { | |
| return $this->fax02; | |
| } | |
| /** | |
| * Set fax03 | |
| * | |
| * @param string $fax03 | |
| * @return Customer | |
| */ | |
| public function setFax03($fax03) | |
| { | |
| $this->fax03 = $fax03; | |
| return $this; | |
| } | |
| /** | |
| * Get fax03 | |
| * | |
| * @return string | |
| */ | |
| public function getFax03() | |
| { | |
| return $this->fax03; | |
| } | |
| /** | |
| * Set birth | |
| * | |
| * @param \DateTime $birth | |
| * @return Customer | |
| */ | |
| public function setBirth($birth) | |
| { | |
| $this->birth = $birth; | |
| return $this; | |
| } | |
| /** | |
| * Get birth | |
| * | |
| * @return \DateTime | |
| */ | |
| public function getBirth() | |
| { | |
| return $this->birth; | |
| } | |
| /** | |
| * Set password | |
| * | |
| * @param string $password | |
| * @return Customer | |
| */ | |
| public function setPassword($password) | |
| { | |
| $this->password = $password; | |
| return $this; | |
| } | |
| /** | |
| * Get password | |
| * | |
| * @return string | |
| */ | |
| public function getPassword() | |
| { | |
| return $this->password; | |
| } | |
| /** | |
| * Set salt | |
| * | |
| * @param string $salt | |
| * @return Customer | |
| */ | |
| public function setSalt($salt) | |
| { | |
| $this->salt = $salt; | |
| return $this; | |
| } | |
| /** | |
| * Get salt | |
| * | |
| * @return string | |
| */ | |
| public function getSalt() | |
| { | |
| return $this->salt; | |
| } | |
| /** | |
| * Set secret_key | |
| * | |
| * @param string $secretKey | |
| * @return Customer | |
| */ | |
| public function setSecretKey($secretKey) | |
| { | |
| $this->secret_key = $secretKey; | |
| return $this; | |
| } | |
| /** | |
| * Get secret_key | |
| * | |
| * @return string | |
| */ | |
| public function getSecretKey() | |
| { | |
| return $this->secret_key; | |
| } | |
| /** | |
| * Set first_buy_date | |
| * | |
| * @param \DateTime $firstBuyDate | |
| * @return Customer | |
| */ | |
| public function setFirstBuyDate($firstBuyDate) | |
| { | |
| $this->first_buy_date = $firstBuyDate; | |
| return $this; | |
| } | |
| /** | |
| * Get first_buy_date | |
| * | |
| * @return \DateTime | |
| */ | |
| public function getFirstBuyDate() | |
| { | |
| return $this->first_buy_date; | |
| } | |
| /** | |
| * Set last_buy_date | |
| * | |
| * @param \DateTime $lastBuyDate | |
| * @return Customer | |
| */ | |
| public function setLastBuyDate($lastBuyDate) | |
| { | |
| $this->last_buy_date = $lastBuyDate; | |
| return $this; | |
| } | |
| /** | |
| * Get last_buy_date | |
| * | |
| * @return \DateTime | |
| */ | |
| public function getLastBuyDate() | |
| { | |
| return $this->last_buy_date; | |
| } | |
| /** | |
| * Set buy_times | |
| * | |
| * @param string $buyTimes | |
| * @return Customer | |
| */ | |
| public function setBuyTimes($buyTimes) | |
| { | |
| $this->buy_times = $buyTimes; | |
| return $this; | |
| } | |
| /** | |
| * Get buy_times | |
| * | |
| * @return string | |
| */ | |
| public function getBuyTimes() | |
| { | |
| return $this->buy_times; | |
| } | |
| /** | |
| * Set buy_total | |
| * | |
| * @param string $buyTotal | |
| * @return Customer | |
| */ | |
| public function setBuyTotal($buyTotal) | |
| { | |
| $this->buy_total = $buyTotal; | |
| return $this; | |
| } | |
| /** | |
| * Get buy_total | |
| * | |
| * @return string | |
| */ | |
| public function getBuyTotal() | |
| { | |
| return $this->buy_total; | |
| } | |
| /** | |
| * Set note | |
| * | |
| * @param string $note | |
| * @return Customer | |
| */ | |
| public function setNote($note) | |
| { | |
| $this->note = $note; | |
| return $this; | |
| } | |
| /** | |
| * Get note | |
| * | |
| * @return string | |
| */ | |
| public function getNote() | |
| { | |
| return $this->note; | |
| } | |
| /** | |
| * Set resetKey | |
| * | |
| * @param string $resetKey | |
| * @return Customer | |
| */ | |
| public function setResetKey($resetKey) | |
| { | |
| $this->reset_key = $resetKey; | |
| return $this; | |
| } | |
| /** | |
| * Get resetKey | |
| * | |
| * @return string | |
| */ | |
| public function getResetKey() | |
| { | |
| return $this->reset_key; | |
| } | |
| /** | |
| * Set resetExpire | |
| * | |
| * @param \DateTime $resetExpire | |
| * @return Customer | |
| */ | |
| public function setResetExpire($resetExpire) | |
| { | |
| $this->reset_expire = $resetExpire; | |
| return $this; | |
| } | |
| /** | |
| * Get resetExpire | |
| * | |
| * @return \DateTime | |
| */ | |
| public function getResetExpire() | |
| { | |
| return $this->reset_expire; | |
| } | |
| /** | |
| * Set Status | |
| * | |
| * @param \Eccube\Entity\Master\CustomerStatus $status | |
| * @return Customer | |
| */ | |
| public function setStatus(\Eccube\Entity\Master\CustomerStatus $status = null) | |
| { | |
| $this->Status = $status; | |
| return $this; | |
| } | |
| /** | |
| * Get Status | |
| * | |
| * @return \Eccube\Entity\Master\CustomerStatus | |
| */ | |
| public function getStatus() | |
| { | |
| return $this->Status; | |
| } | |
| /** | |
| * Set create_date | |
| * | |
| * @param \DateTime $createDate | |
| * @return Customer | |
| */ | |
| public function setCreateDate($createDate) | |
| { | |
| $this->create_date = $createDate; | |
| return $this; | |
| } | |
| /** | |
| * Get create_date | |
| * | |
| * @return \DateTime | |
| */ | |
| public function getCreateDate() | |
| { | |
| return $this->create_date; | |
| } | |
| /** | |
| * Set update_date | |
| * | |
| * @param \DateTime $updateDate | |
| * @return Customer | |
| */ | |
| public function setUpdateDate($updateDate) | |
| { | |
| $this->update_date = $updateDate; | |
| return $this; | |
| } | |
| /** | |
| * Get update_date | |
| * | |
| * @return \DateTime | |
| */ | |
| public function getUpdateDate() | |
| { | |
| return $this->update_date; | |
| } | |
| /** | |
| * Set del_flg | |
| * | |
| * @param integer $delFlg | |
| * @return Customer | |
| */ | |
| public function setDelFlg($delFlg) | |
| { | |
| $this->del_flg = $delFlg; | |
| return $this; | |
| } | |
| /** | |
| * Get del_flg | |
| * | |
| * @return integer | |
| */ | |
| public function getDelFlg() | |
| { | |
| return $this->del_flg; | |
| } | |
| /** | |
| * Add CustomerFavoriteProducts | |
| * | |
| * @param \Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProducts | |
| * @return Customer | |
| */ | |
| public function addCustomerFavoriteProduct(\Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProducts) | |
| { | |
| $this->CustomerFavoriteProducts[] = $customerFavoriteProducts; | |
| return $this; | |
| } | |
| /** | |
| * Remove CustomerFavoriteProducts | |
| * | |
| * @param \Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProducts | |
| */ | |
| public function removeCustomerFavoriteProduct(\Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProducts) | |
| { | |
| $this->CustomerFavoriteProducts->removeElement($customerFavoriteProducts); | |
| } | |
| /** | |
| * Get CustomerFavoriteProducts | |
| * | |
| * @return \Doctrine\Common\Collections\Collection | |
| */ | |
| public function getCustomerFavoriteProducts() | |
| { | |
| return $this->CustomerFavoriteProducts; | |
| } | |
| /** | |
| * Add Orders | |
| * | |
| * @param \Eccube\Entity\Orders $order | |
| * @return Customer | |
| */ | |
| public function addOrder(\Eccube\Entity\Order $order) | |
| { | |
| $this->Orders[] = $order; | |
| return $this; | |
| } | |
| /** | |
| * Remove Orders | |
| * | |
| * @param \Eccube\Entity\Orders $order | |
| */ | |
| public function removeOrder(\Eccube\Entity\Order $order) | |
| { | |
| $this->Orders->removeElement($order); | |
| } | |
| /** | |
| * Get Orders | |
| * | |
| * @return \Doctrine\Common\Collections\Collection | |
| */ | |
| public function getOrders() | |
| { | |
| return $this->Orders; | |
| } | |
| /** | |
| * Add CustomerAddress | |
| * | |
| * @param \Eccube\Entity\CustomerAddress $CustomerAddress | |
| * @return Customer | |
| */ | |
| public function addCustomerAddresses(\Eccube\Entity\CustomerAddress $CustomerAddress) | |
| { | |
| $this->CustomerAddresses[] = $CustomerAddress; | |
| return $this; | |
| } | |
| /** | |
| * Remove CustomerAddresses | |
| * | |
| * @param \Eccube\Entity\CustomerAddress $CustomerAddress | |
| */ | |
| public function removeCustomerAddress(\Eccube\Entity\CustomerAddress $CustomerAddress) | |
| { | |
| $this->CustomerAddresses->removeElement($CustomerAddress); | |
| } | |
| /** | |
| * Get CustomerAddresses | |
| * | |
| * @return \Doctrine\Common\Collections\Collection | |
| */ | |
| public function getCustomerAddresses() | |
| { | |
| return $this->CustomerAddresses; | |
| } | |
| /** | |
| * Set Sex | |
| * | |
| * @param \Eccube\Entity\Master\Sex $sex | |
| * @return Customer | |
| */ | |
| public function setSex(\Eccube\Entity\Master\Sex $sex = null) | |
| { | |
| $this->Sex = $sex; | |
| return $this; | |
| } | |
| /** | |
| * Get Sex | |
| * | |
| * @return \Eccube\Entity\Master\Sex | |
| */ | |
| public function getSex() | |
| { | |
| return $this->Sex; | |
| } | |
| /** | |
| * Set Job | |
| * | |
| * @param \Eccube\Entity\Master\Job $job | |
| * @return Customer | |
| */ | |
| public function setJob(\Eccube\Entity\Master\Job $job = null) | |
| { | |
| $this->Job = $job; | |
| return $this; | |
| } | |
| /** | |
| * Get Job | |
| * | |
| * @return \Eccube\Entity\Master\Job | |
| */ | |
| public function getJob() | |
| { | |
| return $this->Job; | |
| } | |
| /** | |
| * Set Country | |
| * | |
| * @param \Eccube\Entity\Master\Country $country | |
| * @return Customer | |
| */ | |
| public function setCountry(\Eccube\Entity\Master\Country $country = null) | |
| { | |
| $this->Country = $country; | |
| return $this; | |
| } | |
| /** | |
| * Get Country | |
| * | |
| * @return \Eccube\Entity\Master\Country | |
| */ | |
| public function getCountry() | |
| { | |
| return $this->Country; | |
| } | |
| /** | |
| * Set Pref | |
| * | |
| * @param \Eccube\Entity\Master\Pref $pref | |
| * @return Customer | |
| */ | |
| public function setPref(\Eccube\Entity\Master\Pref $pref = null) | |
| { | |
| $this->Pref = $pref; | |
| return $this; | |
| } | |
| /** | |
| * Get Pref | |
| * | |
| * @return \Eccube\Entity\Master\Pref | |
| */ | |
| public function getPref() | |
| { | |
| return $this->Pref; | |
| } | |
| /** | |
| * Get zipcode | |
| * | |
| * @return string | |
| */ | |
| public function getZipcode() | |
| { | |
| return $this->zipcode; | |
| } | |
| /** | |
| * Add CustomerAddresses | |
| * | |
| * @param \Eccube\Entity\CustomerAddress $customerAddresses | |
| * @return Customer | |
| */ | |
| public function addCustomerAddress(\Eccube\Entity\CustomerAddress $customerAddresses) | |
| { | |
| $this->CustomerAddresses[] = $customerAddresses; | |
| return $this; | |
| } | |
| } |