Order extends AbstractEntity implements PurchaseInterface, ItemHolderInterface Uses NameTrait, PointTrait
Order
Tags
Table of Contents
$id | int | |
---|---|---|
$pre_order_id | string|null | |
$order_no | string|null | |
$message | string|null | |
$name01 | string|null | |
$name02 | string|null | |
$kana01 | string|null | |
$kana02 | string|null | |
$company_name | string|null | |
string|null | ||
$phone_number | string|null | |
$postal_code | string|null | |
$addr01 | string|null | |
$addr02 | string|null | |
$birth | DateTime|null | |
$subtotal | string | |
$discount | string | |
$delivery_fee_total | string | |
$charge | string | |
$tax | string | |
$total | string | |
$payment_total | string | |
$payment_method | string|null | |
$note | string|null | |
$create_date | DateTime | |
$update_date | DateTime | |
$order_date | DateTime|null | |
$payment_date | DateTime|null | |
$currency_code | string|null | |
$complete_message | 注文完了画面に表示するメッセージ | string|null |
$complete_mail_message | 注文完了メールに表示するメッセージ | string|null |
$OrderItems | Collection|\Eccube\Entity\OrderItem[] | |
$Shippings | Collection|\Eccube\Entity\Shipping[] | |
$MailHistories | Collection | |
$Customer | Customer | |
$Country | Country | |
$Pref | Pref | |
$Sex | Sex | |
$Job | Job | |
$Payment | Payment | |
$DeviceType | DeviceType | |
$CustomerOrderStatus | OrderStatusより先にプロパティを定義しておかないとセットされなくなる | CustomerOrderStatus |
$OrderStatusColor | OrderStatusより先にプロパティを定義しておかないとセットされなくなる | OrderStatusColor |
$OrderStatus | OrderStatus | |
$add_point | string | |
$use_point | string | |
$AnnotationReader | ||
getTaxableItems() | 課税対象の明細を返す. | array |
getTaxableTotal() | 課税対象の明細の合計金額を返す. | mixed |
getTaxableTotalByTaxRate() | 課税対象の明細の合計金額を、税率ごとに集計する. | array |
getTaxableDiscountItems() | 課税対象の値引き明細を返す. | array |
getTaxableDiscount() | 課税対象の値引き金額合計を返す. | mixed |
getTaxFreeDiscountItems() | 非課税・不課税の値引き明細を返す. | array |
isMultiple() | 複数配送かどうかの判定を行う. | bool |
findShipping() | 対象となるお届け先情報を取得 | Shipping|null |
getSaleTypes() | この注文の保持する販売種別を取得します. | \Eccube\Entity\Master\SaleType[] |
getMergedProductOrderItems() | 同じ規格の商品の個数をまとめた受注明細を取得 | \Eccube\Entity\OrderItem[] |
getTotalPrice() | 合計金額を計算 | string |
__construct() | Constructor | mixed |
__clone() | Clone | mixed |
getId() | Get id. | int |
setPreOrderId() | Set preOrderId. | Order |
getPreOrderId() | Get preOrderId. | string|null |
setOrderNo() | Set orderNo | Order |
getOrderNo() | Get orderNo | string|null |
setMessage() | Set message. | Order |
getMessage() | Get message. | string|null |
setName01() | Set name01. | Order |
getName01() | Get name01. | string|null |
setName02() | Set name02. | Order |
getName02() | Get name02. | string|null |
setKana01() | Set kana01. | Order |
getKana01() | Get kana01. | string|null |
setKana02() | Set kana02. | Order |
getKana02() | Get kana02. | string|null |
setCompanyName() | Set companyName. | Order |
getCompanyName() | Get companyName. | string|null |
setEmail() | Set email. | Order |
getEmail() | Get email. | string|null |
setPhoneNumber() | Set phone_number. | Order |
getPhoneNumber() | Get phone_number. | string|null |
setPostalCode() | Set postal_code. | Order |
getPostalCode() | Get postal_code. | string|null |
setAddr01() | Set addr01. | Order |
getAddr01() | Get addr01. | string|null |
setAddr02() | Set addr02. | Order |
getAddr02() | Get addr02. | string|null |
setBirth() | Set birth. | Order |
getBirth() | Get birth. | DateTime|null |
setSubtotal() | Set subtotal. | Order |
getSubtotal() | Get subtotal. | string |
setDiscount() | Set discount. | Order |
getDiscount() | Get discount. | string |
setDeliveryFeeTotal() | Set deliveryFeeTotal. | Order |
getDeliveryFeeTotal() | Get deliveryFeeTotal. | string |
setCharge() | Set charge. | Order |
getCharge() | Get charge. | string |
setTax() | Set tax. | Order |
getTax() | Get tax. | string |
setTotal() | Set total. | Order |
getTotal() | Get total. | string |
setPaymentTotal() | Set paymentTotal. | Order |
getPaymentTotal() | Get paymentTotal. | string |
setPaymentMethod() | Set paymentMethod. | Order |
getPaymentMethod() | Get paymentMethod. | string|null |
setNote() | Set note. | Order |
getNote() | Get note. | string|null |
setCreateDate() | Set createDate. | Order |
getCreateDate() | Get createDate. | DateTime |
setUpdateDate() | Set updateDate. | Order |
getUpdateDate() | Get updateDate. | DateTime |
setOrderDate() | Set orderDate. | Order |
getOrderDate() | Get orderDate. | DateTime|null |
setPaymentDate() | Set paymentDate. | Order |
getPaymentDate() | Get paymentDate. | DateTime|null |
getCurrencyCode() | Get currencyCode. | string |
setCurrencyCode() | Set currencyCode. | $this |
getCompleteMessage() | null|string | |
setCompleteMessage() | $this | |
appendCompleteMessage() | $this | |
getCompleteMailMessage() | null|string | |
setCompleteMailMessage() | mixed | |
appendCompleteMailMessage() | mixed | |
getProductOrderItems() | 商品の受注明細を取得 | \Eccube\Entity\OrderItem[] |
addOrderItem() | Add orderItem. | Order |
removeOrderItem() | Remove orderItem. | bool |
getOrderItems() | Get orderItems. | Collection|\Eccube\Entity\OrderItem[] |
getItems() | Sorted to getOrderItems() | ItemCollection |
addShipping() | Add shipping. | Order |
removeShipping() | Remove shipping. | bool |
getShippings() | Get shippings. | Collection|\Eccube\Entity\Shipping[] |
addMailHistory() | Add mailHistory. | Order |
removeMailHistory() | Remove mailHistory. | bool |
getMailHistories() | Get mailHistories. | Collection |
setCustomer() | Set customer. | Order |
getCustomer() | Get customer. | Customer|null |
setCountry() | Set country. | Order |
getCountry() | Get country. | Country|null |
setPref() | Set pref. | Order |
getPref() | Get pref. | Pref|null |
setSex() | Set sex. | Order |
getSex() | Get sex. | Sex|null |
setJob() | Set job. | Order |
getJob() | Get job. | Job|null |
setPayment() | Set payment. | Order |
getPayment() | Get payment. | Payment|null |
setDeviceType() | Set deviceType. | Order |
getDeviceType() | Get deviceType. | DeviceType|null |
setCustomerOrderStatus() | Set customerOrderStatus. | Order |
getCustomerOrderStatus() | Get customerOrderStatus. | CustomerOrderStatus|null |
setOrderStatusColor() | Set orderStatusColor. | Order |
getOrderStatusColor() | Get orderStatusColor. | OrderStatusColor|null |
setOrderStatus() | Set orderStatus. | Order |
getOrderStatus() | Get orderStatus. | OrderStatus|null |
addItem() | mixed | |
getQuantity() | 個数の合計を返します。 | mixed |
getFullName() | mixed | |
getFullNameKana() | mixed | |
setAddPoint() | Set addPoint | Order |
getAddPoint() | Get addPoint | string |
setUsePoint() | Set usePoint | Order |
getUsePoint() | Get usePoint | 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
$pre_order_id
private
string|null
$pre_order_id
Tags
$order_no
private
string|null
$order_no
Tags
$message
private
string|null
$message
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
private
string|null
$email
Tags
$phone_number
private
string|null
$phone_number
Tags
$postal_code
private
string|null
$postal_code
Tags
$addr01
private
string|null
$addr01
Tags
$addr02
private
string|null
$addr02
Tags
$birth
private
DateTime|null
$birth
Tags
$subtotal
private
string
$subtotal
= ""
Tags
$discount
private
string
$discount
= ""
Tags
$delivery_fee_total
private
string
$delivery_fee_total
= ""
Tags
$charge
private
string
$charge
= ""
Tags
$tax
private
string
$tax
= ""
Tags
$total
private
string
$total
= ""
Tags
$payment_total
private
string
$payment_total
= ""
Tags
$payment_method
private
string|null
$payment_method
Tags
$note
private
string|null
$note
Tags
$create_date
private
DateTime
$create_date
Tags
$update_date
private
DateTime
$update_date
Tags
$order_date
private
DateTime|null
$order_date
Tags
$payment_date
private
DateTime|null
$payment_date
Tags
$currency_code
private
string|null
$currency_code
Tags
$complete_message
注文完了画面に表示するメッセージ
private
string|null
$complete_message
Tags
$complete_mail_message
注文完了メールに表示するメッセージ
private
string|null
$complete_mail_message
Tags
$OrderItems
private
Collection|\Eccube\Entity\OrderItem[]
$OrderItems
Tags
$Shippings
private
Collection|\Eccube\Entity\Shipping[]
$Shippings
Tags
$MailHistories
private
Collection
$MailHistories
Tags
$Customer
private
Customer
$Customer
Tags
$Country
private
Country
$Country
Tags
$Pref
private
Pref
$Pref
Tags
$Sex
private
Sex
$Sex
Tags
$Job
private
Job
$Job
Tags
$Payment
private
Payment
$Payment
Tags
$DeviceType
private
DeviceType
$DeviceType
Tags
$CustomerOrderStatus
OrderStatusより先にプロパティを定義しておかないとセットされなくなる
private
CustomerOrderStatus
$CustomerOrderStatus
Tags
$OrderStatusColor
OrderStatusより先にプロパティを定義しておかないとセットされなくなる
private
OrderStatusColor
$OrderStatusColor
Tags
$OrderStatus
private
OrderStatus
$OrderStatus
Tags
$add_point
private
string
$add_point
= '0'
Tags
$use_point
private
string
$use_point
= '0'
Tags
$AnnotationReader
private
mixed
$AnnotationReader
Methods
getTaxableItems()
課税対象の明細を返す.
public
getTaxableItems(
)
: array
Return values
arraygetTaxableTotal()
課税対象の明細の合計金額を返す.
public
getTaxableTotal(
)
: mixed
商品合計 + 送料 + 手数料 + 値引き(課税).
Return values
mixedgetTaxableTotalByTaxRate()
課税対象の明細の合計金額を、税率ごとに集計する.
public
getTaxableTotalByTaxRate(
)
: array
Return values
arraygetTaxableDiscountItems()
課税対象の値引き明細を返す.
public
getTaxableDiscountItems(
)
: array
Return values
arraygetTaxableDiscount()
課税対象の値引き金額合計を返す.
public
getTaxableDiscount(
)
: mixed
Return values
mixedgetTaxFreeDiscountItems()
非課税・不課税の値引き明細を返す.
public
getTaxFreeDiscountItems(
)
: array
Return values
arrayisMultiple()
複数配送かどうかの判定を行う.
public
isMultiple(
)
: bool
Return values
boolfindShipping()
対象となるお届け先情報を取得
public
findShipping(
$shippingId :
int
)
: Shipping|null
Parameters
- $shippingId : int
Return values
Shipping|nullgetSaleTypes()
この注文の保持する販売種別を取得します.
public
getSaleTypes(
)
: \Eccube\Entity\Master\SaleType[]
Return values
\Eccube\Entity\Master\SaleType[] —一意な販売種別の配列
getMergedProductOrderItems()
同じ規格の商品の個数をまとめた受注明細を取得
public
getMergedProductOrderItems(
)
: \Eccube\Entity\OrderItem[]
Return values
\Eccube\Entity\OrderItem[]getTotalPrice()
合計金額を計算
public
getTotalPrice(
)
: string
Tags
Return values
string__construct()
Constructor
public
__construct(
[ $orderStatus :
OrderStatus
= null ]
)
: mixed
Parameters
- $orderStatus : OrderStatus = null
Return values
mixed__clone()
Clone
public
__clone(
)
: mixed
Return values
mixedgetId()
Get id.
public
getId(
)
: int
Return values
intsetPreOrderId()
Set preOrderId.
public
setPreOrderId(
[ $preOrderId :
string|null
= null ]
)
: Order
Parameters
- $preOrderId : string|null = null
Return values
OrdergetPreOrderId()
Get preOrderId.
public
getPreOrderId(
)
: string|null
Return values
string|nullsetOrderNo()
Set orderNo
public
setOrderNo(
[ $orderNo :
string|null
= null ]
)
: Order
Parameters
- $orderNo : string|null = null
Return values
OrdergetOrderNo()
Get orderNo
public
getOrderNo(
)
: string|null
Return values
string|nullsetMessage()
Set message.
public
setMessage(
[ $message :
string|null
= null ]
)
: Order
Parameters
- $message : string|null = null
Return values
OrdergetMessage()
Get message.
public
getMessage(
)
: string|null
Return values
string|nullsetName01()
Set name01.
public
setName01(
[ $name01 :
string|null
= null ]
)
: Order
Parameters
- $name01 : string|null = null
Return values
OrdergetName01()
Get name01.
public
getName01(
)
: string|null
Return values
string|nullsetName02()
Set name02.
public
setName02(
[ $name02 :
string|null
= null ]
)
: Order
Parameters
- $name02 : string|null = null
Return values
OrdergetName02()
Get name02.
public
getName02(
)
: string|null
Return values
string|nullsetKana01()
Set kana01.
public
setKana01(
[ $kana01 :
string|null
= null ]
)
: Order
Parameters
- $kana01 : string|null = null
Return values
OrdergetKana01()
Get kana01.
public
getKana01(
)
: string|null
Return values
string|nullsetKana02()
Set kana02.
public
setKana02(
[ $kana02 :
string|null
= null ]
)
: Order
Parameters
- $kana02 : string|null = null
Return values
OrdergetKana02()
Get kana02.
public
getKana02(
)
: string|null
Return values
string|nullsetCompanyName()
Set companyName.
public
setCompanyName(
[ $companyName :
string|null
= null ]
)
: Order
Parameters
- $companyName : string|null = null
Return values
OrdergetCompanyName()
Get companyName.
public
getCompanyName(
)
: string|null
Return values
string|nullsetEmail()
Set email.
public
setEmail(
[ $email :
string|null
= null ]
)
: Order
Parameters
- $email : string|null = null
Return values
OrdergetEmail()
Get email.
public
getEmail(
)
: string|null
Return values
string|nullsetPhoneNumber()
Set phone_number.
public
setPhoneNumber(
[ $phone_number :
string|null
= null ]
)
: Order
Parameters
- $phone_number : string|null = null
Return values
OrdergetPhoneNumber()
Get phone_number.
public
getPhoneNumber(
)
: string|null
Return values
string|nullsetPostalCode()
Set postal_code.
public
setPostalCode(
[ $postal_code :
string|null
= null ]
)
: Order
Parameters
- $postal_code : string|null = null
Return values
OrdergetPostalCode()
Get postal_code.
public
getPostalCode(
)
: string|null
Return values
string|nullsetAddr01()
Set addr01.
public
setAddr01(
[ $addr01 :
string|null
= null ]
)
: Order
Parameters
- $addr01 : string|null = null
Return values
OrdergetAddr01()
Get addr01.
public
getAddr01(
)
: string|null
Return values
string|nullsetAddr02()
Set addr02.
public
setAddr02(
[ $addr02 :
string|null
= null ]
)
: Order
Parameters
- $addr02 : string|null = null
Return values
OrdergetAddr02()
Get addr02.
public
getAddr02(
)
: string|null
Return values
string|nullsetBirth()
Set birth.
public
setBirth(
[ $birth :
DateTime|null
= null ]
)
: Order
Parameters
- $birth : DateTime|null = null
Return values
OrdergetBirth()
Get birth.
public
getBirth(
)
: DateTime|null
Return values
DateTime|nullsetSubtotal()
Set subtotal.
public
setSubtotal(
$subtotal :
string
)
: Order
Parameters
- $subtotal : string
Return values
OrdergetSubtotal()
Get subtotal.
public
getSubtotal(
)
: string
Return values
stringsetDiscount()
Set discount.
public
setDiscount(
$discount :
string
)
: Order
Parameters
- $discount : string
Return values
OrdergetDiscount()
Get discount.
public
getDiscount(
)
: string
Tags
Return values
stringsetDeliveryFeeTotal()
Set deliveryFeeTotal.
public
setDeliveryFeeTotal(
$deliveryFeeTotal :
string
)
: Order
Parameters
- $deliveryFeeTotal : string
Return values
OrdergetDeliveryFeeTotal()
Get deliveryFeeTotal.
public
getDeliveryFeeTotal(
)
: string
Return values
stringsetCharge()
Set charge.
public
setCharge(
$charge :
string
)
: Order
Parameters
- $charge : string
Return values
OrdergetCharge()
Get charge.
public
getCharge(
)
: string
Return values
stringsetTax()
Set tax.
public
setTax(
$tax :
string
)
: Order
Parameters
- $tax : string
Tags
Return values
OrdergetTax()
Get tax.
public
getTax(
)
: string
Tags
Return values
stringsetTotal()
Set total.
public
setTotal(
$total :
string
)
: Order
Parameters
- $total : string
Return values
OrdergetTotal()
Get total.
public
getTotal(
)
: string
Return values
stringsetPaymentTotal()
Set paymentTotal.
public
setPaymentTotal(
$paymentTotal :
string
)
: Order
Parameters
- $paymentTotal : string
Return values
OrdergetPaymentTotal()
Get paymentTotal.
public
getPaymentTotal(
)
: string
Return values
stringsetPaymentMethod()
Set paymentMethod.
public
setPaymentMethod(
[ $paymentMethod :
string|null
= null ]
)
: Order
Parameters
- $paymentMethod : string|null = null
Return values
OrdergetPaymentMethod()
Get paymentMethod.
public
getPaymentMethod(
)
: string|null
Return values
string|nullsetNote()
Set note.
public
setNote(
[ $note :
string|null
= null ]
)
: Order
Parameters
- $note : string|null = null
Return values
OrdergetNote()
Get note.
public
getNote(
)
: string|null
Return values
string|nullsetCreateDate()
Set createDate.
public
setCreateDate(
$createDate :
DateTime
)
: Order
Parameters
- $createDate : DateTime
Return values
OrdergetCreateDate()
Get createDate.
public
getCreateDate(
)
: DateTime
Return values
DateTimesetUpdateDate()
Set updateDate.
public
setUpdateDate(
$updateDate :
DateTime
)
: Order
Parameters
- $updateDate : DateTime
Return values
OrdergetUpdateDate()
Get updateDate.
public
getUpdateDate(
)
: DateTime
Return values
DateTimesetOrderDate()
Set orderDate.
public
setOrderDate(
[ $orderDate :
DateTime|null
= null ]
)
: Order
Parameters
- $orderDate : DateTime|null = null
Return values
OrdergetOrderDate()
Get orderDate.
public
getOrderDate(
)
: DateTime|null
Return values
DateTime|nullsetPaymentDate()
Set paymentDate.
public
setPaymentDate(
[ $paymentDate :
DateTime|null
= null ]
)
: Order
Parameters
- $paymentDate : DateTime|null = null
Return values
OrdergetPaymentDate()
Get paymentDate.
public
getPaymentDate(
)
: DateTime|null
Return values
DateTime|nullgetCurrencyCode()
Get currencyCode.
public
getCurrencyCode(
)
: string
Return values
stringsetCurrencyCode()
Set currencyCode.
public
setCurrencyCode(
[ $currencyCode :
string|null
= null ]
)
: $this
Parameters
- $currencyCode : string|null = null
Return values
$thisgetCompleteMessage()
public
getCompleteMessage(
)
: null|string
Return values
null|stringsetCompleteMessage()
public
setCompleteMessage(
[ $complete_message :
null|string
= null ]
)
: $this
Parameters
- $complete_message : null|string = null
Return values
$thisappendCompleteMessage()
public
appendCompleteMessage(
[ $complete_message :
null|string
= null ]
)
: $this
Parameters
- $complete_message : null|string = null
Return values
$thisgetCompleteMailMessage()
public
getCompleteMailMessage(
)
: null|string
Return values
null|stringsetCompleteMailMessage()
public
setCompleteMailMessage(
[ $complete_mail_message :
null|string
= null ]
)
: mixed
Parameters
- $complete_mail_message : null|string = null
Return values
mixedappendCompleteMailMessage()
public
appendCompleteMailMessage(
[ $complete_mail_message :
null|string
= null ]
)
: mixed
Parameters
- $complete_mail_message : null|string = null
Return values
mixedgetProductOrderItems()
商品の受注明細を取得
public
getProductOrderItems(
)
: \Eccube\Entity\OrderItem[]
Return values
\Eccube\Entity\OrderItem[]addOrderItem()
Add orderItem.
public
addOrderItem(
$OrderItem :
OrderItem
)
: Order
Parameters
- $OrderItem : OrderItem
Return values
OrderremoveOrderItem()
Remove orderItem.
public
removeOrderItem(
$OrderItem :
OrderItem
)
: bool
Parameters
- $OrderItem : OrderItem
Return values
bool —TRUE if this collection contained the specified element, FALSE otherwise.
getOrderItems()
Get orderItems.
public
getOrderItems(
)
: Collection|\Eccube\Entity\OrderItem[]
Return values
Collection|\Eccube\Entity\OrderItem[]getItems()
Sorted to getOrderItems()
public
getItems(
)
: ItemCollection
Return values
ItemCollectionaddShipping()
Add shipping.
public
addShipping(
$Shipping :
Shipping
)
: Order
Parameters
- $Shipping : Shipping
Return values
OrderremoveShipping()
Remove shipping.
public
removeShipping(
$Shipping :
Shipping
)
: bool
Parameters
- $Shipping : Shipping
Return values
bool —TRUE if this collection contained the specified element, FALSE otherwise.
getShippings()
Get shippings.
public
getShippings(
)
: Collection|\Eccube\Entity\Shipping[]
Return values
Collection|\Eccube\Entity\Shipping[]addMailHistory()
Add mailHistory.
public
addMailHistory(
$mailHistory :
MailHistory
)
: Order
Parameters
- $mailHistory : MailHistory
Return values
OrderremoveMailHistory()
Remove mailHistory.
public
removeMailHistory(
$mailHistory :
MailHistory
)
: bool
Parameters
- $mailHistory : MailHistory
Return values
bool —TRUE if this collection contained the specified element, FALSE otherwise.
getMailHistories()
Get mailHistories.
public
getMailHistories(
)
: Collection
Return values
CollectionsetCustomer()
Set customer.
public
setCustomer(
[ $customer :
Customer|null
= null ]
)
: Order
Parameters
- $customer : Customer|null = null
Return values
OrdergetCustomer()
Get customer.
public
getCustomer(
)
: Customer|null
Return values
Customer|nullsetCountry()
Set country.
public
setCountry(
[ $country :
Country|null
= null ]
)
: Order
Parameters
- $country : Country|null = null
Return values
OrdergetCountry()
Get country.
public
getCountry(
)
: Country|null
Return values
Country|nullsetPref()
Set pref.
public
setPref(
[ $pref :
Pref|null
= null ]
)
: Order
Parameters
- $pref : Pref|null = null
Return values
OrdergetPref()
Get pref.
public
getPref(
)
: Pref|null
Return values
Pref|nullsetSex()
Set sex.
public
setSex(
[ $sex :
Sex|null
= null ]
)
: Order
Parameters
- $sex : Sex|null = null
Return values
OrdergetSex()
Get sex.
public
getSex(
)
: Sex|null
Return values
Sex|nullsetJob()
Set job.
public
setJob(
[ $job :
Job|null
= null ]
)
: Order
Parameters
- $job : Job|null = null
Return values
OrdergetJob()
Get job.
public
getJob(
)
: Job|null
Return values
Job|nullsetPayment()
Set payment.
public
setPayment(
[ $payment :
Payment|null
= null ]
)
: Order
Parameters
- $payment : Payment|null = null
Return values
OrdergetPayment()
Get payment.
public
getPayment(
)
: Payment|null
Return values
Payment|nullsetDeviceType()
Set deviceType.
public
setDeviceType(
[ $deviceType :
DeviceType|null
= null ]
)
: Order
Parameters
- $deviceType : DeviceType|null = null
Return values
OrdergetDeviceType()
Get deviceType.
public
getDeviceType(
)
: DeviceType|null
Return values
DeviceType|nullsetCustomerOrderStatus()
Set customerOrderStatus.
public
setCustomerOrderStatus(
[ $customerOrderStatus :
CustomerOrderStatus|null
= null ]
)
: Order
Parameters
- $customerOrderStatus : CustomerOrderStatus|null = null
Return values
OrdergetCustomerOrderStatus()
Get customerOrderStatus.
public
getCustomerOrderStatus(
)
: CustomerOrderStatus|null
Return values
CustomerOrderStatus|nullsetOrderStatusColor()
Set orderStatusColor.
public
setOrderStatusColor(
[ $orderStatusColor :
OrderStatusColor|null
= null ]
)
: Order
Parameters
- $orderStatusColor : OrderStatusColor|null = null
Return values
OrdergetOrderStatusColor()
Get orderStatusColor.
public
getOrderStatusColor(
)
: OrderStatusColor|null
Return values
OrderStatusColor|nullsetOrderStatus()
Set orderStatus.
public
setOrderStatus(
[ $orderStatus :
OrderStatus|null|object
= null ]
)
: Order
Parameters
- $orderStatus : OrderStatus|null|object = null
Return values
OrdergetOrderStatus()
Get orderStatus.
public
getOrderStatus(
)
: OrderStatus|null
Return values
OrderStatus|nulladdItem()
public
addItem(
$item :
ItemInterface
)
: mixed
Parameters
- $item : ItemInterface
Return values
mixedgetQuantity()
個数の合計を返します。
public
getQuantity(
)
: mixed
Return values
mixedgetFullName()
public
getFullName(
)
: mixed
Return values
mixedgetFullNameKana()
public
getFullNameKana(
)
: mixed
Return values
mixedsetAddPoint()
Set addPoint
public
setAddPoint(
$addPoint :
string
)
: Order
Parameters
- $addPoint : string
Return values
OrdergetAddPoint()
Get addPoint
public
getAddPoint(
)
: string
Return values
stringsetUsePoint()
Set usePoint
public
setUsePoint(
$usePoint :
string
)
: Order
Parameters
- $usePoint : string
Return values
OrdergetUsePoint()
Get usePoint
public
getUsePoint(
)
: 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], ...]