OrderItem extends AbstractEntity implements ItemInterface Uses PointRateTrait
OrderItem
Tags
Table of Contents
Properties
$id
private
int
$id
Tags
$product_name
private
string
$product_name
Tags
$product_code
private
string|null
$product_code
Tags
$class_name1
private
string|null
$class_name1
Tags
$class_name2
private
string|null
$class_name2
Tags
$class_category_name1
private
string|null
$class_category_name1
Tags
$class_category_name2
private
string|null
$class_category_name2
Tags
$price
private
string
$price
= ""
Tags
$quantity
private
string
$quantity
= ""
Tags
$tax
private
string
$tax
= ""
Tags
$tax_rate
private
string
$tax_rate
= ""
Tags
$tax_adjust
private
string
$tax_adjust
= ""
Tags
$tax_rule_id
private
int|null
$tax_rule_id
Tags
$currency_code
private
string|null
$currency_code
Tags
$processor_name
private
string|null
$processor_name
Tags
$Order
private
Order
$Order
Tags
$Product
private
Product
$Product
Tags
$ProductClass
private
ProductClass
$ProductClass
Tags
$Shipping
private
Shipping
$Shipping
Tags
$RoundingType
private
RoundingType
$RoundingType
Tags
$TaxType
private
TaxType
$TaxType
Tags
$TaxDisplayType
private
TaxDisplayType
$TaxDisplayType
Tags
$OrderItemType
private
OrderItemType
$OrderItemType
Tags
$point_rate
private
string
$point_rate
Tags
$AnnotationReader
private
mixed
$AnnotationReader
Methods
getPriceIncTax()
Get price IncTax
public
getPriceIncTax(
)
: string
Return values
stringgetTotalPrice()
public
getTotalPrice(
)
: int
Return values
intgetOrderItemTypeId()
public
getOrderItemTypeId(
)
: int
Return values
intisProduct()
商品明細かどうか.
public
isProduct(
)
: bool
Return values
bool —商品明細の場合 true
isDeliveryFee()
送料明細かどうか.
public
isDeliveryFee(
)
: bool
Return values
bool —送料明細の場合 true
isCharge()
手数料明細かどうか.
public
isCharge(
)
: bool
Return values
bool —手数料明細の場合 true
isDiscount()
値引き明細かどうか.
public
isDiscount(
)
: bool
Return values
bool —値引き明細の場合 true
isTax()
税額明細かどうか.
public
isTax(
)
: bool
Return values
bool —税額明細の場合 true
isPoint()
ポイント明細かどうか.
public
isPoint(
)
: bool
Return values
bool —ポイント明細の場合 true
getId()
Get id.
public
getId(
)
: int
Return values
intsetProductName()
Set productName.
public
setProductName(
$productName :
string
)
: OrderItem
Parameters
- $productName : string
Return values
OrderItemgetProductName()
Get productName.
public
getProductName(
)
: string
Return values
stringsetProductCode()
Set productCode.
public
setProductCode(
[ $productCode :
string|null
= null ]
)
: OrderItem
Parameters
- $productCode : string|null = null
Return values
OrderItemgetProductCode()
Get productCode.
public
getProductCode(
)
: string|null
Return values
string|nullsetClassName1()
Set className1.
public
setClassName1(
[ $className1 :
string|null
= null ]
)
: OrderItem
Parameters
- $className1 : string|null = null
Return values
OrderItemgetClassName1()
Get className1.
public
getClassName1(
)
: string|null
Return values
string|nullsetClassName2()
Set className2.
public
setClassName2(
[ $className2 :
string|null
= null ]
)
: OrderItem
Parameters
- $className2 : string|null = null
Return values
OrderItemgetClassName2()
Get className2.
public
getClassName2(
)
: string|null
Return values
string|nullsetClassCategoryName1()
Set classCategoryName1.
public
setClassCategoryName1(
[ $classCategoryName1 :
string|null
= null ]
)
: OrderItem
Parameters
- $classCategoryName1 : string|null = null
Return values
OrderItemgetClassCategoryName1()
Get classCategoryName1.
public
getClassCategoryName1(
)
: string|null
Return values
string|nullsetClassCategoryName2()
Set classCategoryName2.
public
setClassCategoryName2(
[ $classCategoryName2 :
string|null
= null ]
)
: OrderItem
Parameters
- $classCategoryName2 : string|null = null
Return values
OrderItemgetClassCategoryName2()
Get classCategoryName2.
public
getClassCategoryName2(
)
: string|null
Return values
string|nullsetPrice()
Set price.
public
setPrice(
$price :
string
)
: OrderItem
Parameters
- $price : string
Return values
OrderItemgetPrice()
Get price.
public
getPrice(
)
: string
Return values
stringsetQuantity()
Set quantity.
public
setQuantity(
$quantity :
string
)
: OrderItem
Parameters
- $quantity : string
Return values
OrderItemgetQuantity()
Get quantity.
public
getQuantity(
)
: string
Return values
stringgetTax()
public
getTax(
)
: string
Return values
stringsetTax()
public
setTax(
$tax :
string
)
: $this
Parameters
- $tax : string
Return values
$thissetTaxRate()
Set taxRate.
public
setTaxRate(
$taxRate :
string
)
: OrderItem
Parameters
- $taxRate : string
Return values
OrderItemgetTaxRate()
Get taxRate.
public
getTaxRate(
)
: string
Return values
stringsetTaxAdjust()
Set taxAdjust.
public
setTaxAdjust(
$tax_adjust :
string
)
: OrderItem
Parameters
- $tax_adjust : string
Return values
OrderItemgetTaxAdjust()
Get taxAdjust.
public
getTaxAdjust(
)
: string
Return values
stringsetTaxRuleId()
Set taxRuleId.
public
setTaxRuleId(
[ $taxRuleId :
int|null
= null ]
)
: OrderItem
Parameters
- $taxRuleId : int|null = null
Tags
Return values
OrderItemgetTaxRuleId()
Get taxRuleId.
public
getTaxRuleId(
)
: int|null
Tags
Return values
int|nullgetCurrencyCode()
Get currencyCode.
public
getCurrencyCode(
)
: string
Return values
stringsetCurrencyCode()
Set currencyCode.
public
setCurrencyCode(
[ $currencyCode :
string|null
= null ]
)
: OrderItem
Parameters
- $currencyCode : string|null = null
Return values
OrderItemgetProcessorName()
Get processorName.
public
getProcessorName(
)
: string
Return values
stringsetProcessorName()
Set processorName.
public
setProcessorName(
[ $processorName :
string|null
= null ]
)
: $this
Parameters
- $processorName : string|null = null
Return values
$thissetOrder()
Set order.
public
setOrder(
[ $order :
Order|null
= null ]
)
: OrderItem
Parameters
- $order : Order|null = null
Return values
OrderItemgetOrder()
Get order.
public
getOrder(
)
: Order|null
Return values
Order|nullgetOrderId()
public
getOrderId(
)
: mixed
Return values
mixedsetProduct()
Set product.
public
setProduct(
[ $product :
Product|null
= null ]
)
: OrderItem
Parameters
- $product : Product|null = null
Return values
OrderItemgetProduct()
Get product.
public
getProduct(
)
: Product|null
Return values
Product|nullsetProductClass()
Set productClass.
public
setProductClass(
[ $productClass :
ProductClass|null
= null ]
)
: OrderItem
Parameters
- $productClass : ProductClass|null = null
Return values
OrderItemgetProductClass()
Get productClass.
public
getProductClass(
)
: ProductClass|null
Return values
ProductClass|nullsetShipping()
Set shipping.
public
setShipping(
[ $shipping :
Shipping|null
= null ]
)
: OrderItem
Parameters
- $shipping : Shipping|null = null
Return values
OrderItemgetShipping()
Get shipping.
public
getShipping(
)
: Shipping|null
Return values
Shipping|nullgetRoundingType()
public
getRoundingType(
)
: RoundingType
Return values
RoundingTypesetRoundingType()
public
setRoundingType(
[ $RoundingType :
RoundingType
= null ]
)
: mixed
Parameters
- $RoundingType : RoundingType = null
Return values
mixedsetTaxType()
Set taxType
public
setTaxType(
[ $taxType :
TaxType
= null ]
)
: OrderItem
Parameters
- $taxType : TaxType = null
Return values
OrderItemgetTaxType()
Get taxType
public
getTaxType(
)
: TaxType
Return values
TaxTypesetTaxDisplayType()
Set taxDisplayType
public
setTaxDisplayType(
[ $taxDisplayType :
TaxDisplayType
= null ]
)
: OrderItem
Parameters
- $taxDisplayType : TaxDisplayType = null
Return values
OrderItemgetTaxDisplayType()
Get taxDisplayType
public
getTaxDisplayType(
)
: TaxDisplayType
Return values
TaxDisplayTypesetOrderItemType()
Set orderItemType
public
setOrderItemType(
[ $orderItemType :
OrderItemType
= null ]
)
: OrderItem
Parameters
- $orderItemType : OrderItemType = null
Return values
OrderItemgetOrderItemType()
Get orderItemType
public
getOrderItemType(
)
: OrderItemType
Return values
OrderItemTypesetPointRate()
Set pointRate
public
setPointRate(
$pointRate :
string
)
: OrderItem
Parameters
- $pointRate : string
Return values
OrderItemgetPointRate()
Get pointRate
public
getPointRate(
)
: 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], ...]