CustomerAddress extends AbstractEntity
CustomerAddress
Tags
Table of Contents
$id | int | |
---|---|---|
$name01 | string|null | |
$name02 | string|null | |
$kana01 | string|null | |
$kana02 | string|null | |
$company_name | string|null | |
$postal_code | string|null | |
$addr01 | string|null | |
$addr02 | string|null | |
$phone_number | string|null | |
$create_date | DateTime | |
$update_date | DateTime | |
$Customer | Customer | |
$Country | Country | |
$Pref | Pref | |
$AnnotationReader | ||
getShippingMultipleDefaultName() | getShippingMultipleDefaultName | string |
setFromCustomer() | Set from customer. | CustomerAddress |
setFromShipping() | Set from Shipping. | CustomerAddress |
getId() | Get id. | int |
setName01() | Set name01. | CustomerAddress |
getName01() | Get name01. | string|null |
setName02() | Set name02. | CustomerAddress |
getName02() | Get name02. | string|null |
setKana01() | Set kana01. | CustomerAddress |
getKana01() | Get kana01. | string|null |
setKana02() | Set kana02. | CustomerAddress |
getKana02() | Get kana02. | string|null |
setCompanyName() | Set companyName. | CustomerAddress |
getCompanyName() | Get companyName. | string|null |
setPostalCode() | Set postal_code. | CustomerAddress |
getPostalCode() | Get postal_code. | string|null |
setAddr01() | Set addr01. | CustomerAddress |
getAddr01() | Get addr01. | string|null |
setAddr02() | Set addr02. | CustomerAddress |
getAddr02() | Get addr02. | string|null |
setPhoneNumber() | Set phone_number. | CustomerAddress |
getPhoneNumber() | Get phone_number. | string|null |
setCreateDate() | Set createDate. | CustomerAddress |
getCreateDate() | Get createDate. | DateTime |
setUpdateDate() | Set updateDate. | CustomerAddress |
getUpdateDate() | Get updateDate. | DateTime |
setCustomer() | Set customer. | CustomerAddress |
getCustomer() | Get customer. | Customer|null |
setCountry() | Set country. | CustomerAddress |
getCountry() | Get country. | Country|null |
setPref() | Set pref. | CustomerAddress |
getPref() | Get pref. | Pref|null |
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|null
$name01
Tags
$name02
private
string|null
$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
$phone_number
private
string|null
$phone_number
Tags
$create_date
private
DateTime
$create_date
Tags
$update_date
private
DateTime
$update_date
Tags
$Customer
private
Customer
$Customer
Tags
$Country
private
Country
$Country
Tags
$Pref
private
Pref
$Pref
Tags
$AnnotationReader
private
mixed
$AnnotationReader
Methods
getShippingMultipleDefaultName()
getShippingMultipleDefaultName
public
getShippingMultipleDefaultName(
)
: string
Return values
stringsetFromCustomer()
Set from customer.
public
setFromCustomer(
$Customer :
Customer
)
: CustomerAddress
Parameters
- $Customer : Customer
Return values
CustomerAddresssetFromShipping()
Set from Shipping.
public
setFromShipping(
$Shipping :
Shipping
)
: CustomerAddress
Parameters
- $Shipping : Shipping
Return values
CustomerAddressgetId()
Get id.
public
getId(
)
: int
Return values
intsetName01()
Set name01.
public
setName01(
[ $name01 :
string|null
= null ]
)
: CustomerAddress
Parameters
- $name01 : string|null = null
Return values
CustomerAddressgetName01()
Get name01.
public
getName01(
)
: string|null
Return values
string|nullsetName02()
Set name02.
public
setName02(
[ $name02 :
string|null
= null ]
)
: CustomerAddress
Parameters
- $name02 : string|null = null
Return values
CustomerAddressgetName02()
Get name02.
public
getName02(
)
: string|null
Return values
string|nullsetKana01()
Set kana01.
public
setKana01(
[ $kana01 :
string|null
= null ]
)
: CustomerAddress
Parameters
- $kana01 : string|null = null
Return values
CustomerAddressgetKana01()
Get kana01.
public
getKana01(
)
: string|null
Return values
string|nullsetKana02()
Set kana02.
public
setKana02(
[ $kana02 :
string|null
= null ]
)
: CustomerAddress
Parameters
- $kana02 : string|null = null
Return values
CustomerAddressgetKana02()
Get kana02.
public
getKana02(
)
: string|null
Return values
string|nullsetCompanyName()
Set companyName.
public
setCompanyName(
[ $companyName :
string|null
= null ]
)
: CustomerAddress
Parameters
- $companyName : string|null = null
Return values
CustomerAddressgetCompanyName()
Get companyName.
public
getCompanyName(
)
: string|null
Return values
string|nullsetPostalCode()
Set postal_code.
public
setPostalCode(
[ $postal_code :
string|null
= null ]
)
: CustomerAddress
Parameters
- $postal_code : string|null = null
Return values
CustomerAddressgetPostalCode()
Get postal_code.
public
getPostalCode(
)
: string|null
Return values
string|nullsetAddr01()
Set addr01.
public
setAddr01(
[ $addr01 :
string|null
= null ]
)
: CustomerAddress
Parameters
- $addr01 : string|null = null
Return values
CustomerAddressgetAddr01()
Get addr01.
public
getAddr01(
)
: string|null
Return values
string|nullsetAddr02()
Set addr02.
public
setAddr02(
[ $addr02 :
string|null
= null ]
)
: CustomerAddress
Parameters
- $addr02 : string|null = null
Return values
CustomerAddressgetAddr02()
Get addr02.
public
getAddr02(
)
: string|null
Return values
string|nullsetPhoneNumber()
Set phone_number.
public
setPhoneNumber(
[ $phone_number :
string|null
= null ]
)
: CustomerAddress
Parameters
- $phone_number : string|null = null
Return values
CustomerAddressgetPhoneNumber()
Get phone_number.
public
getPhoneNumber(
)
: string|null
Return values
string|nullsetCreateDate()
Set createDate.
public
setCreateDate(
$createDate :
DateTime
)
: CustomerAddress
Parameters
- $createDate : DateTime
Return values
CustomerAddressgetCreateDate()
Get createDate.
public
getCreateDate(
)
: DateTime
Return values
DateTimesetUpdateDate()
Set updateDate.
public
setUpdateDate(
$updateDate :
DateTime
)
: CustomerAddress
Parameters
- $updateDate : DateTime
Return values
CustomerAddressgetUpdateDate()
Get updateDate.
public
getUpdateDate(
)
: DateTime
Return values
DateTimesetCustomer()
Set customer.
public
setCustomer(
[ $customer :
Customer|null
= null ]
)
: CustomerAddress
Parameters
- $customer : Customer|null = null
Return values
CustomerAddressgetCustomer()
Get customer.
public
getCustomer(
)
: Customer|null
Return values
Customer|nullsetCountry()
Set country.
public
setCountry(
[ $country :
Country|null
= null ]
)
: CustomerAddress
Parameters
- $country : Country|null = null
Return values
CustomerAddressgetCountry()
Get country.
public
getCountry(
)
: Country|null
Return values
Country|nullsetPref()
Set pref.
public
setPref(
[ $pref :
Pref|null
= null ]
)
: CustomerAddress
Parameters
- $pref : Pref|null = null
Return values
CustomerAddressgetPref()
Get pref.
public
getPref(
)
: Pref|null
Return values
Pref|nulloffsetExists()
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], ...]