PHP Class Eccube\Entity\Customer

@UniqueEntity("email")
Inheritance: extends Eccube\Entity\AbstractEntity, implements Symfony\Component\Security\Core\User\UserInterface
Datei anzeigen Open project: ec-cube/ec-cube Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor
__toString ( ) : string
addCustomerAddress ( CustomerAddress $customerAddresses ) : Customer Add CustomerAddresses
addCustomerAddresses ( CustomerAddress $CustomerAddress ) : Customer Add CustomerAddress
addCustomerFavoriteProduct ( Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProducts ) : Customer Add CustomerFavoriteProducts
addOrder ( Order $order ) : Customer Add Orders
eraseCredentials ( )
getAddr01 ( ) : string Get addr01
getAddr02 ( ) : string Get addr02
getBirth ( ) : DateTime Get birth
getBuyTimes ( ) : string Get buy_times
getBuyTotal ( ) : string Get buy_total
getCompanyName ( ) : string Get company_name
getCountry ( ) : Eccube\Entity\Master\Country Get Country
getCreateDate ( ) : DateTime Get create_date
getCustomerAddresses ( ) : Doctrine\Common\Collections\Collection Get CustomerAddresses
getCustomerFavoriteProducts ( ) : Doctrine\Common\Collections\Collection Get CustomerFavoriteProducts
getDelFlg ( ) : integer Get del_flg
getEmail ( ) : string Get email
getFax01 ( ) : string Get fax01
getFax02 ( ) : string Get fax02
getFax03 ( ) : string Get fax03
getFirstBuyDate ( ) : DateTime Get first_buy_date
getId ( ) : integer Get id
getJob ( ) : Eccube\Entity\Master\Job Get Job
getKana01 ( ) : string Get kana01
getKana02 ( ) : string Get kana02
getLastBuyDate ( ) : DateTime Get last_buy_date
getName01 ( ) : string Get name01
getName02 ( ) : string Get name02
getNote ( ) : string Get note
getOrders ( ) : Doctrine\Common\Collections\Collection Get Orders
getPassword ( ) : string Get password
getPref ( ) : Eccube\Entity\Master\Pref Get Pref
getResetExpire ( ) : DateTime Get resetExpire
getResetKey ( ) : string Get resetKey
getRoles ( )
getSalt ( ) : string Get salt
getSecretKey ( ) : string Get secret_key
getSex ( ) : Eccube\Entity\Master\Sex Get Sex
getStatus ( ) : Eccube\Entity\Master\CustomerStatus Get Status
getTel01 ( ) : string Get tel01
getTel02 ( ) : string Get tel02
getTel03 ( ) : string Get tel03
getUpdateDate ( ) : DateTime Get update_date
getUsername ( )
getZip01 ( ) : string Get zip01
getZip02 ( ) : string Get zip02
getZipcode ( ) : string Get zipcode
loadValidatorMetadata ( Symfony\Component\Validator\Mapping\ClassMetadata $metadata ) TODO: できればFormTypeで行いたい
removeCustomerAddress ( CustomerAddress $CustomerAddress ) Remove CustomerAddresses
removeCustomerFavoriteProduct ( Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProducts ) Remove CustomerFavoriteProducts
removeOrder ( Order $order ) Remove Orders
setAddr01 ( string $addr01 ) : Customer Set addr01
setAddr02 ( string $addr02 ) : Customer Set addr02
setBirth ( DateTime $birth ) : Customer Set birth
setBuyTimes ( string $buyTimes ) : Customer Set buy_times
setBuyTotal ( string $buyTotal ) : Customer Set buy_total
setCompanyName ( string $companyName ) : Customer Set company_name
setCountry ( Eccube\Entity\Master\Country $country = null ) : Customer Set Country
setCreateDate ( DateTime $createDate ) : Customer Set create_date
setDelFlg ( integer $delFlg ) : Customer Set del_flg
setEmail ( string $email ) : Customer Set email
setFax01 ( string $fax01 ) : Customer Set fax01
setFax02 ( string $fax02 ) : Customer Set fax02
setFax03 ( string $fax03 ) : Customer Set fax03
setFirstBuyDate ( DateTime $firstBuyDate ) : Customer Set first_buy_date
setJob ( Eccube\Entity\Master\Job $job = null ) : Customer Set Job
setKana01 ( string $kana01 ) : Customer Set kana01
setKana02 ( string $kana02 ) : Customer Set kana02
setLastBuyDate ( DateTime $lastBuyDate ) : Customer Set last_buy_date
setName01 ( string $name01 ) : Customer Set name01
setName02 ( string $name02 ) : Customer Set name02
setNote ( string $note ) : Customer Set note
setPassword ( string $password ) : Customer Set password
setPref ( Eccube\Entity\Master\Pref $pref = null ) : Customer Set Pref
setResetExpire ( DateTime $resetExpire ) : Customer Set resetExpire
setResetKey ( string $resetKey ) : Customer Set resetKey
setSalt ( string $salt ) : Customer Set salt
setSecretKey ( string $secretKey ) : Customer Set secret_key
setSex ( Eccube\Entity\Master\Sex $sex = null ) : Customer Set Sex
setStatus ( Eccube\Entity\Master\CustomerStatus $status = null ) : Customer Set Status
setTel01 ( string $tel01 ) : Customer Set tel01
setTel02 ( string $tel02 ) : Customer Set tel02
setTel03 ( string $tel03 ) : Customer Set tel03
setUpdateDate ( DateTime $updateDate ) : Customer Set update_date
setZip01 ( string $zip01 ) : Customer Set zip01
setZip02 ( string $zip02 ) : Customer Set zip02
setZipcode ( string $zipcode ) : Customer Set zipcode

Method Details

__construct() public method

Constructor
public __construct ( )

__toString() public method

public __toString ( ) : string
return string

addCustomerAddress() public method

Add CustomerAddresses
public addCustomerAddress ( CustomerAddress $customerAddresses ) : Customer
$customerAddresses CustomerAddress
return Customer

addCustomerAddresses() public method

Add CustomerAddress
public addCustomerAddresses ( CustomerAddress $CustomerAddress ) : Customer
$CustomerAddress CustomerAddress
return Customer

addCustomerFavoriteProduct() public method

Add CustomerFavoriteProducts
public addCustomerFavoriteProduct ( Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProducts ) : Customer
$customerFavoriteProducts Eccube\Entity\CustomerFavoriteProduct
return Customer

addOrder() public method

Add Orders
public addOrder ( Order $order ) : Customer
$order Order
return Customer

eraseCredentials() public method

public eraseCredentials ( )

getAddr01() public method

Get addr01
public getAddr01 ( ) : string
return string

getAddr02() public method

Get addr02
public getAddr02 ( ) : string
return string

getBirth() public method

Get birth
public getBirth ( ) : DateTime
return DateTime

getBuyTimes() public method

Get buy_times
public getBuyTimes ( ) : string
return string

getBuyTotal() public method

Get buy_total
public getBuyTotal ( ) : string
return string

getCompanyName() public method

Get company_name
public getCompanyName ( ) : string
return string

getCountry() public method

Get Country
public getCountry ( ) : Eccube\Entity\Master\Country
return Eccube\Entity\Master\Country

getCreateDate() public method

Get create_date
public getCreateDate ( ) : DateTime
return DateTime

getCustomerAddresses() public method

Get CustomerAddresses
public getCustomerAddresses ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getCustomerFavoriteProducts() public method

Get CustomerFavoriteProducts
public getCustomerFavoriteProducts ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getDelFlg() public method

Get del_flg
public getDelFlg ( ) : integer
return integer

getEmail() public method

Get email
public getEmail ( ) : string
return string

getFax01() public method

Get fax01
public getFax01 ( ) : string
return string

getFax02() public method

Get fax02
public getFax02 ( ) : string
return string

getFax03() public method

Get fax03
public getFax03 ( ) : string
return string

getFirstBuyDate() public method

Get first_buy_date
public getFirstBuyDate ( ) : DateTime
return DateTime

getId() public method

Get id
public getId ( ) : integer
return integer

getJob() public method

Get Job
public getJob ( ) : Eccube\Entity\Master\Job
return Eccube\Entity\Master\Job

getKana01() public method

Get kana01
public getKana01 ( ) : string
return string

getKana02() public method

Get kana02
public getKana02 ( ) : string
return string

getLastBuyDate() public method

Get last_buy_date
public getLastBuyDate ( ) : DateTime
return DateTime

getName01() public method

Get name01
public getName01 ( ) : string
return string

getName02() public method

Get name02
public getName02 ( ) : string
return string

getNote() public method

Get note
public getNote ( ) : string
return string

getOrders() public method

Get Orders
public getOrders ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getPassword() public method

Get password
public getPassword ( ) : string
return string

getPref() public method

Get Pref
public getPref ( ) : Eccube\Entity\Master\Pref
return Eccube\Entity\Master\Pref

getResetExpire() public method

Get resetExpire
public getResetExpire ( ) : DateTime
return DateTime

getResetKey() public method

Get resetKey
public getResetKey ( ) : string
return string

getRoles() public method

public getRoles ( )

getSalt() public method

Get salt
public getSalt ( ) : string
return string

getSecretKey() public method

Get secret_key
public getSecretKey ( ) : string
return string

getSex() public method

Get Sex
public getSex ( ) : Eccube\Entity\Master\Sex
return Eccube\Entity\Master\Sex

getStatus() public method

Get Status
public getStatus ( ) : Eccube\Entity\Master\CustomerStatus
return Eccube\Entity\Master\CustomerStatus

getTel01() public method

Get tel01
public getTel01 ( ) : string
return string

getTel02() public method

Get tel02
public getTel02 ( ) : string
return string

getTel03() public method

Get tel03
public getTel03 ( ) : string
return string

getUpdateDate() public method

Get update_date
public getUpdateDate ( ) : DateTime
return DateTime

getUsername() public method

public getUsername ( )

getZip01() public method

Get zip01
public getZip01 ( ) : string
return string

getZip02() public method

Get zip02
public getZip02 ( ) : string
return string

getZipcode() public method

Get zipcode
public getZipcode ( ) : string
return string

loadValidatorMetadata() public static method

TODO: できればFormTypeで行いたい
public static loadValidatorMetadata ( Symfony\Component\Validator\Mapping\ClassMetadata $metadata )
$metadata Symfony\Component\Validator\Mapping\ClassMetadata

removeCustomerAddress() public method

Remove CustomerAddresses
public removeCustomerAddress ( CustomerAddress $CustomerAddress )
$CustomerAddress CustomerAddress

removeCustomerFavoriteProduct() public method

Remove CustomerFavoriteProducts
public removeCustomerFavoriteProduct ( Eccube\Entity\CustomerFavoriteProduct $customerFavoriteProducts )
$customerFavoriteProducts Eccube\Entity\CustomerFavoriteProduct

removeOrder() public method

Remove Orders
public removeOrder ( Order $order )
$order Order

setAddr01() public method

Set addr01
public setAddr01 ( string $addr01 ) : Customer
$addr01 string
return Customer

setAddr02() public method

Set addr02
public setAddr02 ( string $addr02 ) : Customer
$addr02 string
return Customer

setBirth() public method

Set birth
public setBirth ( DateTime $birth ) : Customer
$birth DateTime
return Customer

setBuyTimes() public method

Set buy_times
public setBuyTimes ( string $buyTimes ) : Customer
$buyTimes string
return Customer

setBuyTotal() public method

Set buy_total
public setBuyTotal ( string $buyTotal ) : Customer
$buyTotal string
return Customer

setCompanyName() public method

Set company_name
public setCompanyName ( string $companyName ) : Customer
$companyName string
return Customer

setCountry() public method

Set Country
public setCountry ( Eccube\Entity\Master\Country $country = null ) : Customer
$country Eccube\Entity\Master\Country
return Customer

setCreateDate() public method

Set create_date
public setCreateDate ( DateTime $createDate ) : Customer
$createDate DateTime
return Customer

setDelFlg() public method

Set del_flg
public setDelFlg ( integer $delFlg ) : Customer
$delFlg integer
return Customer

setEmail() public method

Set email
public setEmail ( string $email ) : Customer
$email string
return Customer

setFax01() public method

Set fax01
public setFax01 ( string $fax01 ) : Customer
$fax01 string
return Customer

setFax02() public method

Set fax02
public setFax02 ( string $fax02 ) : Customer
$fax02 string
return Customer

setFax03() public method

Set fax03
public setFax03 ( string $fax03 ) : Customer
$fax03 string
return Customer

setFirstBuyDate() public method

Set first_buy_date
public setFirstBuyDate ( DateTime $firstBuyDate ) : Customer
$firstBuyDate DateTime
return Customer

setJob() public method

Set Job
public setJob ( Eccube\Entity\Master\Job $job = null ) : Customer
$job Eccube\Entity\Master\Job
return Customer

setKana01() public method

Set kana01
public setKana01 ( string $kana01 ) : Customer
$kana01 string
return Customer

setKana02() public method

Set kana02
public setKana02 ( string $kana02 ) : Customer
$kana02 string
return Customer

setLastBuyDate() public method

Set last_buy_date
public setLastBuyDate ( DateTime $lastBuyDate ) : Customer
$lastBuyDate DateTime
return Customer

setName01() public method

Set name01
public setName01 ( string $name01 ) : Customer
$name01 string
return Customer

setName02() public method

Set name02
public setName02 ( string $name02 ) : Customer
$name02 string
return Customer

setNote() public method

Set note
public setNote ( string $note ) : Customer
$note string
return Customer

setPassword() public method

Set password
public setPassword ( string $password ) : Customer
$password string
return Customer

setPref() public method

Set Pref
public setPref ( Eccube\Entity\Master\Pref $pref = null ) : Customer
$pref Eccube\Entity\Master\Pref
return Customer

setResetExpire() public method

Set resetExpire
public setResetExpire ( DateTime $resetExpire ) : Customer
$resetExpire DateTime
return Customer

setResetKey() public method

Set resetKey
public setResetKey ( string $resetKey ) : Customer
$resetKey string
return Customer

setSalt() public method

Set salt
public setSalt ( string $salt ) : Customer
$salt string
return Customer

setSecretKey() public method

Set secret_key
public setSecretKey ( string $secretKey ) : Customer
$secretKey string
return Customer

setSex() public method

Set Sex
public setSex ( Eccube\Entity\Master\Sex $sex = null ) : Customer
$sex Eccube\Entity\Master\Sex
return Customer

setStatus() public method

Set Status
public setStatus ( Eccube\Entity\Master\CustomerStatus $status = null ) : Customer
$status Eccube\Entity\Master\CustomerStatus
return Customer

setTel01() public method

Set tel01
public setTel01 ( string $tel01 ) : Customer
$tel01 string
return Customer

setTel02() public method

Set tel02
public setTel02 ( string $tel02 ) : Customer
$tel02 string
return Customer

setTel03() public method

Set tel03
public setTel03 ( string $tel03 ) : Customer
$tel03 string
return Customer

setUpdateDate() public method

Set update_date
public setUpdateDate ( DateTime $updateDate ) : Customer
$updateDate DateTime
return Customer

setZip01() public method

Set zip01
public setZip01 ( string $zip01 ) : Customer
$zip01 string
return Customer

setZip02() public method

Set zip02
public setZip02 ( string $zip02 ) : Customer
$zip02 string
return Customer

setZipcode() public method

Set zipcode
public setZipcode ( string $zipcode ) : Customer
$zipcode string
return Customer