EC-CUBE4 APIドキュメント

CustomerAddress extends AbstractEntity

CustomerAddress

Tags
ORM\Table

(name="dtb_customer_address")

ORM\InheritanceType

("SINGLE_TABLE")

ORM\DiscriminatorColumn

(name="discriminator_type", type="string", length=255)

ORM\HasLifecycleCallbacks

()

ORM\Entity

(repositoryClass="Eccube\Repository\CustomerAddressRepository")

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
ORM\Column

(name="id", type="integer", options={"unsigned":true})

ORM\Id
ORM\GeneratedValue

(strategy="IDENTITY")

$name01

private string|null $name01
Tags
ORM\Column

(name="name01", type="string", length=255)

$name02

private string|null $name02
Tags
ORM\Column

(name="name02", type="string", length=255)

$kana01

private string|null $kana01
Tags
ORM\Column

(name="kana01", type="string", length=255, nullable=true)

$kana02

private string|null $kana02
Tags
ORM\Column

(name="kana02", type="string", length=255, nullable=true)

$company_name

private string|null $company_name
Tags
ORM\Column

(name="company_name", type="string", length=255, nullable=true)

$postal_code

private string|null $postal_code
Tags
ORM\Column

(name="postal_code", type="string", length=8, nullable=true)

$addr01

private string|null $addr01
Tags
ORM\Column

(name="addr01", type="string", length=255, nullable=true)

$addr02

private string|null $addr02
Tags
ORM\Column

(name="addr02", type="string", length=255, nullable=true)

$phone_number

private string|null $phone_number
Tags
ORM\Column

(name="phone_number", type="string", length=14, nullable=true)

$create_date

private DateTime $create_date
Tags
ORM\Column

(name="create_date", type="datetimetz")

$update_date

private DateTime $update_date
Tags
ORM\Column

(name="update_date", type="datetimetz")

$Customer

private Customer $Customer
Tags
ORM\ManyToOne

(targetEntity="Eccube\Entity\Customer", inversedBy="CustomerAddresses")

ORM\JoinColumns

({ @ORM\JoinColumn(name="customer_id", referencedColumnName="id") })

$Country

private Country $Country
Tags
ORM\ManyToOne

(targetEntity="Eccube\Entity\Master\Country")

ORM\JoinColumns

({ @ORM\JoinColumn(name="country_id", referencedColumnName="id") })

$Pref

private Pref $Pref
Tags
ORM\ManyToOne

(targetEntity="Eccube\Entity\Master\Pref")

ORM\JoinColumns

({ @ORM\JoinColumn(name="pref_id", referencedColumnName="id") })

Methods

getShippingMultipleDefaultName()

getShippingMultipleDefaultName

public getShippingMultipleDefaultName( ) : string
Return values
string

getName01()

Get name01.

public getName01( ) : string|null
Return values
string|null

getName02()

Get name02.

public getName02( ) : string|null
Return values
string|null

getKana01()

Get kana01.

public getKana01( ) : string|null
Return values
string|null

getKana02()

Get kana02.

public getKana02( ) : string|null
Return values
string|null

getCompanyName()

Get companyName.

public getCompanyName( ) : string|null
Return values
string|null

getPostalCode()

Get postal_code.

public getPostalCode( ) : string|null
Return values
string|null

getAddr01()

Get addr01.

public getAddr01( ) : string|null
Return values
string|null

getAddr02()

Get addr02.

public getAddr02( ) : string|null
Return values
string|null

getPhoneNumber()

Get phone_number.

public getPhoneNumber( ) : string|null
Return values
string|null

getCreateDate()

Get createDate.

public getCreateDate( ) : DateTime
Return values
DateTime

getUpdateDate()

Get updateDate.

public getUpdateDate( ) : DateTime
Return values
DateTime

offsetExists()

public offsetExists( $offset : mixed ) : mixed
Parameters
$offset : mixed
Return values
mixed

offsetSet()

public offsetSet( $offset : mixed , $value : mixed ) : mixed
Parameters
$offset : mixed
$value : mixed
Return values
mixed

offsetGet()

public offsetGet( $offset : mixed ) : mixed
Parameters
$offset : mixed
Return values
mixed

offsetUnset()

public offsetUnset( $offset : mixed ) : mixed
Parameters
$offset : mixed
Return values
mixed

setPropertiesFromArray()

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

public setPropertiesFromArray( $arrProps : array [, $excludeAttribute : string[] = [] ] [, $parentClass : ReflectionClass = null ] ) : mixed

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

Parameters
$arrProps : array

プロパティの情報を格納した連想配列

$excludeAttribute : string[] = []

除外したいフィールド名の配列

$parentClass : ReflectionClass = null

親のクラス. 本メソッドの内部的に使用します.

Return values
mixed

toArray()

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
array

toNormalizedArray()

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
array

toJSON()

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
string

toXML()

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
string

copyProperties()

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

public copyProperties( $srcObject : object [, $excludeAttribute : string[] = [] ] ) : AbstractEntity
Parameters
$srcObject : object

コピー元のオブジェクト

$excludeAttribute : string[] = []

除外したいフィールド名の配列

Return values
AbstractEntity

getAnnotationReader()

Get AnnotationReader.

public getAnnotationReader( ) : Reader
Return values
Reader

getEntityIdentifierAsArray()

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], ...]

Search results