Customer extends AbstractEntity implements UserInterface
Customer
Tags
Table of Contents
$id | int | |
---|---|---|
$name01 | string | |
$name02 | string | |
$kana01 | string|null | |
$kana02 | string|null | |
$company_name | string|null | |
$postal_code | string|null | |
$addr01 | string|null | |
$addr02 | string|null | |
string | ||
$phone_number | string|null | |
$birth | DateTime|null | |
$password | string|null | |
$salt | string|null | |
$secret_key | string | |
$first_buy_date | DateTime|null | |
$last_buy_date | DateTime|null | |
$buy_times | string|null | |
$buy_total | string|null | |
$note | string|null | |
$reset_key | string|null | |
$reset_expire | DateTime|null | |
$point | string | |
$create_date | DateTime | |
$update_date | DateTime | |
$CustomerFavoriteProducts | Collection | |
$CustomerAddresses | Collection | |
$Orders | Collection | |
$Status | CustomerStatus | |
$Sex | Sex | |
$Job | Job | |
$Country | Country | |
$Pref | Pref | |
$AnnotationReader | ||
__construct() | Constructor | mixed |
__toString() | string | |
getRoles() | {@inheritdoc} | mixed |
getUsername() | {@inheritdoc} | mixed |
eraseCredentials() | {@inheritdoc} | mixed |
loadValidatorMetadata() | mixed | |
getId() | Get id. | int |
setName01() | Set name01. | Customer |
getName01() | Get name01. | string |
setName02() | Set name02. | Customer |
getName02() | Get name02. | string |
setKana01() | Set kana01. | Customer |
getKana01() | Get kana01. | string|null |
setKana02() | Set kana02. | Customer |
getKana02() | Get kana02. | string|null |
setCompanyName() | Set companyName. | Customer |
getCompanyName() | Get companyName. | string|null |
setPostalCode() | Set postal_code. | Customer |
getPostalCode() | Get postal_code. | string|null |
setAddr01() | Set addr01. | Customer |
getAddr01() | Get addr01. | string|null |
setAddr02() | Set addr02. | Customer |
getAddr02() | Get addr02. | string|null |
setEmail() | Set email. | Customer |
getEmail() | Get email. | string |
setPhoneNumber() | Set phone_number. | Customer |
getPhoneNumber() | Get phone_number. | string|null |
setBirth() | Set birth. | Customer |
getBirth() | Get birth. | DateTime|null |
setPassword() | Set password. | Customer |
getPassword() | Get password. | string|null |
setSalt() | Set salt. | Customer |
getSalt() | Get salt. | string|null |
setSecretKey() | Set secretKey. | Customer |
getSecretKey() | Get secretKey. | string |
setFirstBuyDate() | Set firstBuyDate. | Customer |
getFirstBuyDate() | Get firstBuyDate. | DateTime|null |
setLastBuyDate() | Set lastBuyDate. | Customer |
getLastBuyDate() | Get lastBuyDate. | DateTime|null |
setBuyTimes() | Set buyTimes. | Customer |
getBuyTimes() | Get buyTimes. | string|null |
setBuyTotal() | Set buyTotal. | Customer |
getBuyTotal() | Get buyTotal. | string|null |
setNote() | Set note. | Customer |
getNote() | Get note. | string|null |
setResetKey() | Set resetKey. | Customer |
getResetKey() | Get resetKey. | string|null |
setResetExpire() | Set resetExpire. | Customer |
getResetExpire() | Get resetExpire. | DateTime|null |
setCreateDate() | Set createDate. | Customer |
getCreateDate() | Get createDate. | DateTime |
setUpdateDate() | Set updateDate. | Customer |
getUpdateDate() | Get updateDate. | DateTime |
addCustomerFavoriteProduct() | Add customerFavoriteProduct. | Customer |
removeCustomerFavoriteProduct() | Remove customerFavoriteProduct. | bool |
getCustomerFavoriteProducts() | Get customerFavoriteProducts. | Collection |
addCustomerAddress() | Add customerAddress. | Customer |
removeCustomerAddress() | Remove customerAddress. | bool |
getCustomerAddresses() | Get customerAddresses. | Collection |
addOrder() | Add order. | Customer |
removeOrder() | Remove order. | bool |
getOrders() | Get orders. | Collection |
setStatus() | Set status. | Customer |
getStatus() | Get status. | CustomerStatus|null |
setSex() | Set sex. | Customer |
getSex() | Get sex. | Sex|null |
setJob() | Set job. | Customer |
getJob() | Get job. | Job|null |
setCountry() | Set country. | Customer |
getCountry() | Get country. | Country|null |
setPref() | Set pref. | Customer |
getPref() | Get pref. | Pref|null |
setPoint() | Set point | Customer |
getPoint() | Get point | string |
offsetExists() | mixed | |
offsetSet() | mixed | |
offsetGet() | mixed | |
offsetUnset() | mixed | |
setPropertiesFromArray() | 引数の連想配列を元にプロパティを設定します. | mixed |
toArray() | Convert to associative array. | array |
toNormalizedArray() | Convert to associative array, and normalize to association properties. | array |
toJSON() | Convert to JSON. | string |
toXML() | Convert to XML. | string |
copyProperties() | コピー元のオブジェクトのフィールド名を指定して、同名のフィールドに値をコピー | AbstractEntity |
setAnnotationReader() | Set AnnotationReader. | AbstractEntity |
getAnnotationReader() | Get AnnotationReader. | Reader |
getEntityIdentifierAsArray() | Convert to Entity of Identity value to associative array. | array |
Properties
$id
private
int
$id
Tags
$name01
private
string
$name01
Tags
$name02
private
string
$name02
Tags
$kana01
private
string|null
$kana01
Tags
$kana02
private
string|null
$kana02
Tags
$company_name
private
string|null
$company_name
Tags
$postal_code
private
string|null
$postal_code
Tags
$addr01
private
string|null
$addr01
Tags
$addr02
private
string|null
$addr02
Tags
private
string
$email
Tags
$phone_number
private
string|null
$phone_number
Tags
$birth
private
DateTime|null
$birth
Tags
$password
private
string|null
$password
Tags
$salt
private
string|null
$salt
Tags
$secret_key
private
string
$secret_key
Tags
$first_buy_date
private
DateTime|null
$first_buy_date
Tags
$last_buy_date
private
DateTime|null
$last_buy_date
Tags
$buy_times
private
string|null
$buy_times
= ""
Tags
$buy_total
private
string|null
$buy_total
= ""
Tags
$note
private
string|null
$note
Tags
$reset_key
private
string|null
$reset_key
Tags
$reset_expire
private
DateTime|null
$reset_expire
Tags
$point
private
string
$point
= '0'
Tags
$create_date
private
DateTime
$create_date
Tags
$update_date
private
DateTime
$update_date
Tags
$CustomerFavoriteProducts
private
Collection
$CustomerFavoriteProducts
Tags
$CustomerAddresses
private
Collection
$CustomerAddresses
Tags
$Orders
private
Collection
$Orders
Tags
$Status
private
CustomerStatus
$Status
Tags
$Sex
private
Sex
$Sex
Tags
$Job
private
Job
$Job
Tags
$Country
private
Country
$Country
Tags
$Pref
private
Pref
$Pref
Tags
$AnnotationReader
private
mixed
$AnnotationReader
Methods
__construct()
Constructor
public
__construct(
)
: mixed
Return values
mixed__toString()
public
__toString(
)
: string
Return values
stringgetRoles()
{@inheritdoc}
public
getRoles(
)
: mixed
Return values
mixedgetUsername()
{@inheritdoc}
public
getUsername(
)
: mixed
Return values
mixederaseCredentials()
{@inheritdoc}
public
eraseCredentials(
)
: mixed
Return values
mixedloadValidatorMetadata()
public
static loadValidatorMetadata(
$metadata :
ClassMetadata
)
: mixed
Parameters
- $metadata : ClassMetadata
Return values
mixedgetId()
Get id.
public
getId(
)
: int
Return values
intsetName01()
Set name01.
public
setName01(
$name01 :
string
)
: Customer
Parameters
- $name01 : string
Return values
CustomergetName01()
Get name01.
public
getName01(
)
: string
Return values
stringsetName02()
Set name02.
public
setName02(
$name02 :
string
)
: Customer
Parameters
- $name02 : string
Return values
CustomergetName02()
Get name02.
public
getName02(
)
: string
Return values
stringsetKana01()
Set kana01.
public
setKana01(
[ $kana01 :
string|null
= null ]
)
: Customer
Parameters
- $kana01 : string|null = null
Return values
CustomergetKana01()
Get kana01.
public
getKana01(
)
: string|null
Return values
string|nullsetKana02()
Set kana02.
public
setKana02(
[ $kana02 :
string|null
= null ]
)
: Customer
Parameters
- $kana02 : string|null = null
Return values
CustomergetKana02()
Get kana02.
public
getKana02(
)
: string|null
Return values
string|nullsetCompanyName()
Set companyName.
public
setCompanyName(
[ $companyName :
string|null
= null ]
)
: Customer
Parameters
- $companyName : string|null = null
Return values
CustomergetCompanyName()
Get companyName.
public
getCompanyName(
)
: string|null
Return values
string|nullsetPostalCode()
Set postal_code.
public
setPostalCode(
[ $postal_code :
string|null
= null ]
)
: Customer
Parameters
- $postal_code : string|null = null
Return values
CustomergetPostalCode()
Get postal_code.
public
getPostalCode(
)
: string|null
Return values
string|nullsetAddr01()
Set addr01.
public
setAddr01(
[ $addr01 :
string|null
= null ]
)
: Customer
Parameters
- $addr01 : string|null = null
Return values
CustomergetAddr01()
Get addr01.
public
getAddr01(
)
: string|null
Return values
string|nullsetAddr02()
Set addr02.
public
setAddr02(
[ $addr02 :
string|null
= null ]
)
: Customer
Parameters
- $addr02 : string|null = null
Return values
CustomergetAddr02()
Get addr02.
public
getAddr02(
)
: string|null
Return values
string|nullsetEmail()
Set email.
public
setEmail(
$email :
string
)
: Customer
Parameters
- $email : string
Return values
CustomergetEmail()
Get email.
public
getEmail(
)
: string
Return values
stringsetPhoneNumber()
Set phone_number.
public
setPhoneNumber(
[ $phone_number :
string|null
= null ]
)
: Customer
Parameters
- $phone_number : string|null = null
Return values
CustomergetPhoneNumber()
Get phone_number.
public
getPhoneNumber(
)
: string|null
Return values
string|nullsetBirth()
Set birth.
public
setBirth(
[ $birth :
DateTime|null
= null ]
)
: Customer
Parameters
- $birth : DateTime|null = null
Return values
CustomergetBirth()
Get birth.
public
getBirth(
)
: DateTime|null
Return values
DateTime|nullsetPassword()
Set password.
public
setPassword(
[ $password :
string|null
= null ]
)
: Customer
Parameters
- $password : string|null = null
Return values
CustomergetPassword()
Get password.
public
getPassword(
)
: string|null
Return values
string|nullsetSalt()
Set salt.
public
setSalt(
[ $salt :
string|null
= null ]
)
: Customer
Parameters
- $salt : string|null = null
Return values
CustomergetSalt()
Get salt.
public
getSalt(
)
: string|null
Return values
string|nullsetSecretKey()
Set secretKey.
public
setSecretKey(
$secretKey :
string
)
: Customer
Parameters
- $secretKey : string
Return values
CustomergetSecretKey()
Get secretKey.
public
getSecretKey(
)
: string
Return values
stringsetFirstBuyDate()
Set firstBuyDate.
public
setFirstBuyDate(
[ $firstBuyDate :
DateTime|null
= null ]
)
: Customer
Parameters
- $firstBuyDate : DateTime|null = null
Return values
CustomergetFirstBuyDate()
Get firstBuyDate.
public
getFirstBuyDate(
)
: DateTime|null
Return values
DateTime|nullsetLastBuyDate()
Set lastBuyDate.
public
setLastBuyDate(
[ $lastBuyDate :
DateTime|null
= null ]
)
: Customer
Parameters
- $lastBuyDate : DateTime|null = null
Return values
CustomergetLastBuyDate()
Get lastBuyDate.
public
getLastBuyDate(
)
: DateTime|null
Return values
DateTime|nullsetBuyTimes()
Set buyTimes.
public
setBuyTimes(
[ $buyTimes :
string|null
= null ]
)
: Customer
Parameters
- $buyTimes : string|null = null
Return values
CustomergetBuyTimes()
Get buyTimes.
public
getBuyTimes(
)
: string|null
Return values
string|nullsetBuyTotal()
Set buyTotal.
public
setBuyTotal(
[ $buyTotal :
string|null
= null ]
)
: Customer
Parameters
- $buyTotal : string|null = null
Return values
CustomergetBuyTotal()
Get buyTotal.
public
getBuyTotal(
)
: string|null
Return values
string|nullsetNote()
Set note.
public
setNote(
[ $note :
string|null
= null ]
)
: Customer
Parameters
- $note : string|null = null
Return values
CustomergetNote()
Get note.
public
getNote(
)
: string|null
Return values
string|nullsetResetKey()
Set resetKey.
public
setResetKey(
[ $resetKey :
string|null
= null ]
)
: Customer
Parameters
- $resetKey : string|null = null
Return values
CustomergetResetKey()
Get resetKey.
public
getResetKey(
)
: string|null
Return values
string|nullsetResetExpire()
Set resetExpire.
public
setResetExpire(
[ $resetExpire :
DateTime|null
= null ]
)
: Customer
Parameters
- $resetExpire : DateTime|null = null
Return values
CustomergetResetExpire()
Get resetExpire.
public
getResetExpire(
)
: DateTime|null
Return values
DateTime|nullsetCreateDate()
Set createDate.
public
setCreateDate(
$createDate :
DateTime
)
: Customer
Parameters
- $createDate : DateTime
Return values
CustomergetCreateDate()
Get createDate.
public
getCreateDate(
)
: DateTime
Return values
DateTimesetUpdateDate()
Set updateDate.
public
setUpdateDate(
$updateDate :
DateTime
)
: Customer
Parameters
- $updateDate : DateTime
Return values
CustomergetUpdateDate()
Get updateDate.
public
getUpdateDate(
)
: DateTime
Return values
DateTimeaddCustomerFavoriteProduct()
Add customerFavoriteProduct.
public
addCustomerFavoriteProduct(
$customerFavoriteProduct :
CustomerFavoriteProduct
)
: Customer
Parameters
- $customerFavoriteProduct : CustomerFavoriteProduct
Return values
CustomerremoveCustomerFavoriteProduct()
Remove customerFavoriteProduct.
public
removeCustomerFavoriteProduct(
$customerFavoriteProduct :
CustomerFavoriteProduct
)
: bool
Parameters
- $customerFavoriteProduct : CustomerFavoriteProduct
Return values
bool —TRUE if this collection contained the specified element, FALSE otherwise.
getCustomerFavoriteProducts()
Get customerFavoriteProducts.
public
getCustomerFavoriteProducts(
)
: Collection
Return values
CollectionaddCustomerAddress()
Add customerAddress.
public
addCustomerAddress(
$customerAddress :
CustomerAddress
)
: Customer
Parameters
- $customerAddress : CustomerAddress
Return values
CustomerremoveCustomerAddress()
Remove customerAddress.
public
removeCustomerAddress(
$customerAddress :
CustomerAddress
)
: bool
Parameters
- $customerAddress : CustomerAddress
Return values
bool —TRUE if this collection contained the specified element, FALSE otherwise.
getCustomerAddresses()
Get customerAddresses.
public
getCustomerAddresses(
)
: Collection
Return values
CollectionaddOrder()
Add order.
public
addOrder(
$order :
Order
)
: Customer
Parameters
- $order : Order
Return values
CustomerremoveOrder()
Remove order.
public
removeOrder(
$order :
Order
)
: bool
Parameters
- $order : Order
Return values
bool —TRUE if this collection contained the specified element, FALSE otherwise.
getOrders()
Get orders.
public
getOrders(
)
: Collection
Return values
CollectionsetStatus()
Set status.
public
setStatus(
[ $status :
CustomerStatus|null
= null ]
)
: Customer
Parameters
- $status : CustomerStatus|null = null
Return values
CustomergetStatus()
Get status.
public
getStatus(
)
: CustomerStatus|null
Return values
CustomerStatus|nullsetSex()
Set sex.
public
setSex(
[ $sex :
Sex|null
= null ]
)
: Customer
Parameters
- $sex : Sex|null = null
Return values
CustomergetSex()
Get sex.
public
getSex(
)
: Sex|null
Return values
Sex|nullsetJob()
Set job.
public
setJob(
[ $job :
Job|null
= null ]
)
: Customer
Parameters
- $job : Job|null = null
Return values
CustomergetJob()
Get job.
public
getJob(
)
: Job|null
Return values
Job|nullsetCountry()
Set country.
public
setCountry(
[ $country :
Country|null
= null ]
)
: Customer
Parameters
- $country : Country|null = null
Return values
CustomergetCountry()
Get country.
public
getCountry(
)
: Country|null
Return values
Country|nullsetPref()
Set pref.
public
setPref(
[ $pref :
Pref|null
= null ]
)
: Customer
Parameters
- $pref : Pref|null = null
Return values
CustomergetPref()
Get pref.
public
getPref(
)
: Pref|null
Return values
Pref|nullsetPoint()
Set point
public
setPoint(
$point :
string
)
: Customer
Parameters
- $point : string
Return values
CustomergetPoint()
Get point
public
getPoint(
)
: string
Return values
stringoffsetExists()
public
offsetExists(
$offset :
mixed
)
: mixed
Parameters
- $offset : mixed
Return values
mixedoffsetSet()
public
offsetSet(
$offset :
mixed
, $value :
mixed
)
: mixed
Parameters
- $offset : mixed
- $value : mixed
Return values
mixedoffsetGet()
public
offsetGet(
$offset :
mixed
)
: mixed
Parameters
- $offset : mixed
Return values
mixedoffsetUnset()
public
offsetUnset(
$offset :
mixed
)
: mixed
Parameters
- $offset : mixed
Return values
mixedsetPropertiesFromArray()
引数の連想配列を元にプロパティを設定します.
public
setPropertiesFromArray(
$arrProps :
array
[, $excludeAttribute :
string[]
= [] ]
[, $parentClass :
ReflectionClass
= null ]
)
: mixed
DBから取り出した連想配列を, プロパティへ設定する際に使用します.
Parameters
- $arrProps : array
プロパティの情報を格納した連想配列
- $excludeAttribute : string[] = []
除外したいフィールド名の配列
- $parentClass : ReflectionClass = null
親のクラス. 本メソッドの内部的に使用します.
Return values
mixedtoArray()
Convert to associative array.
public
toArray(
[ $excludeAttribute :
array
= ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader'] ]
[, $parentClass :
ReflectionClass
= null ]
)
: array
Symfony Serializer Component is expensive, and hard to implementation. Use for encoder only.
Parameters
- $excludeAttribute : array = ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader']
Array of field names to exclusion.
- $parentClass : ReflectionClass = null
parent class. Use internally of this method..
Return values
arraytoNormalizedArray()
Convert to associative array, and normalize to association properties.
public
toNormalizedArray(
[ $excludeAttribute :
array
= ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader'] ]
)
: array
The type conversion such as:
- Datetime :: W3C datetime format string
- AbstractEntity :: associative array such as [id => value]
- PersistentCollection :: associative array of [[id => value], [id => value], ...]
Parameters
- $excludeAttribute : array = ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader']
Array of field names to exclusion.
Return values
arraytoJSON()
Convert to JSON.
public
toJSON(
[ $excludeAttribute :
array
= ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader'] ]
)
: string
Parameters
- $excludeAttribute : array = ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader']
Array of field names to exclusion.
Return values
stringtoXML()
Convert to XML.
public
toXML(
[ $excludeAttribute :
array
= ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader'] ]
)
: string
Parameters
- $excludeAttribute : array = ['__initializer__', '__cloner__', '__isInitialized__', 'AnnotationReader']
Array of field names to exclusion.
Return values
stringcopyProperties()
コピー元のオブジェクトのフィールド名を指定して、同名のフィールドに値をコピー
public
copyProperties(
$srcObject :
object
[, $excludeAttribute :
string[]
= [] ]
)
: AbstractEntity
Parameters
- $srcObject : object
コピー元のオブジェクト
- $excludeAttribute : string[] = []
除外したいフィールド名の配列
Return values
AbstractEntitysetAnnotationReader()
Set AnnotationReader.
public
setAnnotationReader(
$Reader :
Reader
)
: AbstractEntity
Parameters
- $Reader : Reader
Return values
AbstractEntitygetAnnotationReader()
Get AnnotationReader.
public
getAnnotationReader(
)
: Reader
Return values
ReadergetEntityIdentifierAsArray()
Convert to Entity of Identity value to associative array.
public
getEntityIdentifierAsArray(
$Entity :
AbstractEntity
)
: array
Parameters
- $Entity : AbstractEntity
Return values
array —associative array of [[id => value], [id => value], ...]