class Customer extends AbstractEntity implements UserInterface

Customer

@UniqueEntity("email")

Methods

offsetExists($offset)

No description

offsetSet($offset, $value)

No description

offsetGet($offset)

No description

offsetUnset($offset)

No description

setPropertiesFromArray(array $arrProps, array $excludeAttribute = array(), ReflectionClass $parentClass = null)

引数の連想配列を元にプロパティを設定します.

array
toArray(array $excludeAttribute = array(), ReflectionClass $parentClass = null)

プロパティの値を連想配列で返します.

object
copyProperties(object $srcObject, array $excludeAttribute = array())

コピー元のオブジェクトのフィールド名を指定して、同名のフィールドに値をコピー

__construct()

Constructor

string
__toString()

No description

getRoles()

{@inheritdoc}

getUsername()

{@inheritdoc}

eraseCredentials()

{@inheritdoc}

static 
loadValidatorMetadata(ClassMetadata $metadata)

No description

integer
getId()

Get id

setName01(string $name01)

Set name01

string
getName01()

Get name01

setName02(string $name02)

Set name02

string
getName02()

Get name02

setKana01(string $kana01)

Set kana01

string
getKana01()

Get kana01

setKana02(string $kana02)

Set kana02

string
getKana02()

Get kana02

setCompanyName(string $companyName)

Set company_name

string
getCompanyName()

Get company_name

setZip01(string $zip01)

Set zip01

string
getZip01()

Get zip01

setZip02(string $zip02)

Set zip02

string
getZip02()

Get zip02

setZipcode(string $zipcode)

Set zipcode

setAddr01(string $addr01)

Set addr01

string
getAddr01()

Get addr01

setAddr02(string $addr02)

Set addr02

string
getAddr02()

Get addr02

setEmail(string $email)

Set email

string
getEmail()

Get email

setTel01(string $tel01)

Set tel01

string
getTel01()

Get tel01

setTel02(string $tel02)

Set tel02

string
getTel02()

Get tel02

setTel03(string $tel03)

Set tel03

string
getTel03()

Get tel03

setFax01(string $fax01)

Set fax01

string
getFax01()

Get fax01

setFax02(string $fax02)

Set fax02

string
getFax02()

Get fax02

setFax03(string $fax03)

Set fax03

string
getFax03()

Get fax03

setBirth(DateTime $birth)

Set birth

getBirth()

Get birth

setPassword(string $password)

Set password

string
getPassword()

Get password

setSalt(string $salt)

Set salt

string
getSalt()

Get salt

setSecretKey(string $secretKey)

Set secret_key

string
getSecretKey()

Get secret_key

setFirstBuyDate(DateTime $firstBuyDate)

Set firstbuydate

getFirstBuyDate()

Get firstbuydate

setLastBuyDate(DateTime $lastBuyDate)

Set lastbuydate

getLastBuyDate()

Get lastbuydate

setBuyTimes(string $buyTimes)

Set buy_times

string
getBuyTimes()

Get buy_times

setBuyTotal(string $buyTotal)

Set buy_total

string
getBuyTotal()

Get buy_total

setNote(string $note)

Set note

string
getNote()

Get note

setResetKey(string $resetKey)

Set resetKey

string
getResetKey()

Get resetKey

setResetExpire(DateTime $resetExpire)

Set resetExpire

getResetExpire()

Get resetExpire

setStatus(CustomerStatus $status = null)

Set Status

getStatus()

Get Status

setCreateDate(DateTime $createDate)

Set create_date

getCreateDate()

Get create_date

setUpdateDate(DateTime $updateDate)

Set update_date

getUpdateDate()

Get update_date

setDelFlg(integer $delFlg)

Set del_flg

integer
getDelFlg()

Get del_flg

addCustomerFavoriteProduct(CustomerFavoriteProduct $customerFavoriteProducts)

Add CustomerFavoriteProducts

removeCustomerFavoriteProduct(CustomerFavoriteProduct $customerFavoriteProducts)

Remove CustomerFavoriteProducts

Collection
getCustomerFavoriteProducts()

Get CustomerFavoriteProducts

addOrder(Order $order)

Add Orders

removeOrder(Order $order)

Remove Orders

Collection
getOrders()

Get Orders

addCustomerAddresses(CustomerAddress $CustomerAddress)

Add CustomerAddress

removeCustomerAddress(CustomerAddress $CustomerAddress)

Remove CustomerAddresses

Collection
getCustomerAddresses()

Get CustomerAddresses

setSex(Sex $sex = null)

Set Sex

Sex
getSex()

Get Sex

setJob(Job $job = null)

Set Job

Job
getJob()

Get Job

setCountry(Country $country = null)

Set Country

getCountry()

Get Country

setPref(Pref $pref = null)

Set Pref

getPref()

Get Pref

string
getZipcode()

Get zipcode

addCustomerAddress(CustomerAddress $customerAddresses)

Add CustomerAddresses

Details

in AbstractEntity at line 32
offsetExists($offset)

Parameters

$offset

in AbstractEntity at line 39
offsetSet($offset, $value)

Parameters

$offset
$value

in AbstractEntity at line 43
offsetGet($offset)

Parameters

$offset

in AbstractEntity at line 54
offsetUnset($offset)

Parameters

$offset

in AbstractEntity at line 66
setPropertiesFromArray(array $arrProps, array $excludeAttribute = array(), ReflectionClass $parentClass = null)

引数の連想配列を元にプロパティを設定します.

DBから取り出した連想配列を, プロパティへ設定する際に使用します.

Parameters

array $arrProps
array $excludeAttribute
ReflectionClass $parentClass

in AbstractEntity at line 99
array toArray(array $excludeAttribute = array(), ReflectionClass $parentClass = null)

プロパティの値を連想配列で返します.

DBを更新する場合などで, 連想配列の値を取得したい場合に使用します.

Parameters

array $excludeAttribute
ReflectionClass $parentClass

Return Value

array 連想配列のプロパティの値

in AbstractEntity at line 139
object copyProperties(object $srcObject, array $excludeAttribute = array())

コピー元のオブジェクトのフィールド名を指定して、同名のフィールドに値をコピー

Parameters

object $srcObject コピー元のオブジェクト
array $excludeAttribute 除外したいフィールド名の配列

Return Value

object

at line 243
__construct()

Constructor

at line 257
string __toString()

Return Value

string

at line 265
getRoles()

{@inheritdoc}

at line 273
getUsername()

{@inheritdoc}

at line 281
eraseCredentials()

{@inheritdoc}

at line 286
static loadValidatorMetadata(ClassMetadata $metadata)

Parameters

ClassMetadata $metadata

at line 299
integer getId()

Get id

Return Value

integer

at line 310
Customer setName01(string $name01)

Set name01

Parameters

string $name01

Return Value

Customer

at line 322
string getName01()

Get name01

Return Value

string

at line 333
Customer setName02(string $name02)

Set name02

Parameters

string $name02

Return Value

Customer

at line 345
string getName02()

Get name02

Return Value

string

at line 356
Customer setKana01(string $kana01)

Set kana01

Parameters

string $kana01

Return Value

Customer

at line 368
string getKana01()

Get kana01

Return Value

string

at line 379
Customer setKana02(string $kana02)

Set kana02

Parameters

string $kana02

Return Value

Customer

at line 391
string getKana02()

Get kana02

Return Value

string

at line 402
Customer setCompanyName(string $companyName)

Set company_name

Parameters

string $companyName

Return Value

Customer

at line 414
string getCompanyName()

Get company_name

Return Value

string

at line 425
Customer setZip01(string $zip01)

Set zip01

Parameters

string $zip01

Return Value

Customer

at line 437
string getZip01()

Get zip01

Return Value

string

at line 448
Customer setZip02(string $zip02)

Set zip02

Parameters

string $zip02

Return Value

Customer

at line 460
string getZip02()

Get zip02

Return Value

string

at line 471
Customer setZipcode(string $zipcode)

Set zipcode

Parameters

string $zipcode

Return Value

Customer

at line 484
Customer setAddr01(string $addr01)

Set addr01

Parameters

string $addr01

Return Value

Customer

at line 496
string getAddr01()

Get addr01

Return Value

string

at line 507
Customer setAddr02(string $addr02)

Set addr02

Parameters

string $addr02

Return Value

Customer

at line 519
string getAddr02()

Get addr02

Return Value

string

at line 530
Customer setEmail(string $email)

Set email

Parameters

string $email

Return Value

Customer

at line 542
string getEmail()

Get email

Return Value

string

at line 554
Customer setTel01(string $tel01)

Set tel01

Parameters

string $tel01

Return Value

Customer

at line 566
string getTel01()

Get tel01

Return Value

string

at line 577
Customer setTel02(string $tel02)

Set tel02

Parameters

string $tel02

Return Value

Customer

at line 589
string getTel02()

Get tel02

Return Value

string

at line 600
Customer setTel03(string $tel03)

Set tel03

Parameters

string $tel03

Return Value

Customer

at line 612
string getTel03()

Get tel03

Return Value

string

at line 623
Customer setFax01(string $fax01)

Set fax01

Parameters

string $fax01

Return Value

Customer

at line 635
string getFax01()

Get fax01

Return Value

string

at line 646
Customer setFax02(string $fax02)

Set fax02

Parameters

string $fax02

Return Value

Customer

at line 658
string getFax02()

Get fax02

Return Value

string

at line 669
Customer setFax03(string $fax03)

Set fax03

Parameters

string $fax03

Return Value

Customer

at line 681
string getFax03()

Get fax03

Return Value

string

at line 692
Customer setBirth(DateTime $birth)

Set birth

Parameters

DateTime $birth

Return Value

Customer

at line 704
DateTime getBirth()

Get birth

Return Value

DateTime

at line 715
Customer setPassword(string $password)

Set password

Parameters

string $password

Return Value

Customer

at line 727
string getPassword()

Get password

Return Value

string

at line 738
Customer setSalt(string $salt)

Set salt

Parameters

string $salt

Return Value

Customer

at line 750
string getSalt()

Get salt

Return Value

string

at line 761
Customer setSecretKey(string $secretKey)

Set secret_key

Parameters

string $secretKey

Return Value

Customer

at line 773
string getSecretKey()

Get secret_key

Return Value

string

at line 784
Customer setFirstBuyDate(DateTime $firstBuyDate)

Set firstbuydate

Parameters

DateTime $firstBuyDate

Return Value

Customer

at line 796
DateTime getFirstBuyDate()

Get firstbuydate

Return Value

DateTime

at line 807
Customer setLastBuyDate(DateTime $lastBuyDate)

Set lastbuydate

Parameters

DateTime $lastBuyDate

Return Value

Customer

at line 819
DateTime getLastBuyDate()

Get lastbuydate

Return Value

DateTime

at line 830
Customer setBuyTimes(string $buyTimes)

Set buy_times

Parameters

string $buyTimes

Return Value

Customer

at line 842
string getBuyTimes()

Get buy_times

Return Value

string

at line 853
Customer setBuyTotal(string $buyTotal)

Set buy_total

Parameters

string $buyTotal

Return Value

Customer

at line 865
string getBuyTotal()

Get buy_total

Return Value

string

at line 876
Customer setNote(string $note)

Set note

Parameters

string $note

Return Value

Customer

at line 888
string getNote()

Get note

Return Value

string

at line 899
Customer setResetKey(string $resetKey)

Set resetKey

Parameters

string $resetKey

Return Value

Customer

at line 911
string getResetKey()

Get resetKey

Return Value

string

at line 922
Customer setResetExpire(DateTime $resetExpire)

Set resetExpire

Parameters

DateTime $resetExpire

Return Value

Customer

at line 934
DateTime getResetExpire()

Get resetExpire

Return Value

DateTime

at line 945
Customer setStatus(CustomerStatus $status = null)

Set Status

Parameters

CustomerStatus $status

Return Value

Customer

at line 957
CustomerStatus getStatus()

Get Status

Return Value

CustomerStatus

at line 968
Customer setCreateDate(DateTime $createDate)

Set create_date

Parameters

DateTime $createDate

Return Value

Customer

at line 980
DateTime getCreateDate()

Get create_date

Return Value

DateTime

at line 991
Customer setUpdateDate(DateTime $updateDate)

Set update_date

Parameters

DateTime $updateDate

Return Value

Customer

at line 1003
DateTime getUpdateDate()

Get update_date

Return Value

DateTime

at line 1014
Customer setDelFlg(integer $delFlg)

Set del_flg

Parameters

integer $delFlg

Return Value

Customer

at line 1026
integer getDelFlg()

Get del_flg

Return Value

integer

at line 1037
Customer addCustomerFavoriteProduct(CustomerFavoriteProduct $customerFavoriteProducts)

Add CustomerFavoriteProducts

Parameters

CustomerFavoriteProduct $customerFavoriteProducts

Return Value

Customer

at line 1049
removeCustomerFavoriteProduct(CustomerFavoriteProduct $customerFavoriteProducts)

Remove CustomerFavoriteProducts

Parameters

CustomerFavoriteProduct $customerFavoriteProducts

at line 1059
Collection getCustomerFavoriteProducts()

Get CustomerFavoriteProducts

Return Value

Collection

at line 1070
Customer addOrder(Order $order)

Add Orders

Parameters

Order $order

Return Value

Customer

at line 1082
removeOrder(Order $order)

Remove Orders

Parameters

Order $order

at line 1092
Collection getOrders()

Get Orders

Return Value

Collection

at line 1103
Customer addCustomerAddresses(CustomerAddress $CustomerAddress)

Add CustomerAddress

Parameters

CustomerAddress $CustomerAddress

Return Value

Customer

at line 1115
removeCustomerAddress(CustomerAddress $CustomerAddress)

Remove CustomerAddresses

Parameters

CustomerAddress $CustomerAddress

at line 1125
Collection getCustomerAddresses()

Get CustomerAddresses

Return Value

Collection

at line 1136
Customer setSex(Sex $sex = null)

Set Sex

Parameters

Sex $sex

Return Value

Customer

at line 1148
Sex getSex()

Get Sex

Return Value

Sex

at line 1159
Customer setJob(Job $job = null)

Set Job

Parameters

Job $job

Return Value

Customer

at line 1171
Job getJob()

Get Job

Return Value

Job

at line 1182
Customer setCountry(Country $country = null)

Set Country

Parameters

Country $country

Return Value

Customer

at line 1194
Country getCountry()

Get Country

Return Value

Country

at line 1205
Customer setPref(Pref $pref = null)

Set Pref

Parameters

Pref $pref

Return Value

Customer

at line 1217
Pref getPref()

Get Pref

Return Value

Pref

at line 1227
string getZipcode()

Get zipcode

Return Value

string

at line 1238
Customer addCustomerAddress(CustomerAddress $customerAddresses)

Add CustomerAddresses

Parameters

CustomerAddress $customerAddresses

Return Value

Customer