ProductClass extends AbstractEntity
ProductClass
Tags
Table of Contents
Properties
$price01_inc_tax
private
mixed
$price01_inc_tax
= null
$price02_inc_tax
private
mixed
$price02_inc_tax
= null
$tax_rate
private
mixed
$tax_rate
= false
$id
private
int
$id
Tags
$code
private
string|null
$code
Tags
$stock
private
string|null
$stock
Tags
$stock_unlimited
private
bool
$stock_unlimited
= false
Tags
$sale_limit
private
string|null
$sale_limit
Tags
$price01
private
string|null
$price01
Tags
$price02
private
string
$price02
Tags
$delivery_fee
private
string|null
$delivery_fee
Tags
$visible
private
bool
$visible
Tags
$create_date
private
DateTime
$create_date
Tags
$update_date
private
DateTime
$update_date
Tags
$currency_code
private
string|null
$currency_code
Tags
$point_rate
private
string
$point_rate
Tags
$ProductStock
private
ProductStock
$ProductStock
Tags
$TaxRule
private
TaxRule
$TaxRule
Tags
$Product
private
Product
$Product
Tags
$SaleType
private
SaleType
$SaleType
Tags
$ClassCategory1
private
ClassCategory
$ClassCategory1
Tags
$ClassCategory2
private
ClassCategory
$ClassCategory2
Tags
$DeliveryDuration
private
DeliveryDuration
$DeliveryDuration
Tags
$Creator
private
Member
$Creator
Tags
$AnnotationReader
private
mixed
$AnnotationReader
Methods
formattedProductName()
商品規格名を含めた商品名を返す.
public
formattedProductName(
)
: string
Return values
stringisEnable()
Is Enable
public
isEnable(
)
: bool
Tags
Return values
boolsetPrice01IncTax()
Set price01 IncTax
public
setPrice01IncTax(
$price01_inc_tax :
string
)
: ProductClass
Parameters
- $price01_inc_tax : string
Return values
ProductClassgetPrice01IncTax()
Get price01 IncTax
public
getPrice01IncTax(
)
: string
Return values
stringsetPrice02IncTax()
Set price02 IncTax
public
setPrice02IncTax(
$price02_inc_tax :
mixed
)
: ProductClass
Parameters
- $price02_inc_tax : mixed
Return values
ProductClassgetPrice02IncTax()
Get price02 IncTax
public
getPrice02IncTax(
)
: string
Return values
stringgetStockFind()
Get StockFind
public
getStockFind(
)
: bool
Return values
boolsetTaxRate()
Set tax_rate
public
setTaxRate(
$tax_rate :
string
)
: ProductClass
Parameters
- $tax_rate : string
Return values
ProductClassgetTaxRate()
Get tax_rate
public
getTaxRate(
)
: bool
Return values
boolhasClassCategory1()
Has ClassCategory1
public
hasClassCategory1(
)
: bool
Return values
boolhasClassCategory2()
Has ClassCategory1
public
hasClassCategory2(
)
: bool
Return values
bool__clone()
public
__clone(
)
: mixed
Return values
mixedgetId()
Get id.
public
getId(
)
: int
Return values
intsetCode()
Set code.
public
setCode(
[ $code :
string|null
= null ]
)
: ProductClass
Parameters
- $code : string|null = null
Return values
ProductClassgetCode()
Get code.
public
getCode(
)
: string|null
Return values
string|nullsetStock()
Set stock.
public
setStock(
[ $stock :
string|null
= null ]
)
: ProductClass
Parameters
- $stock : string|null = null
Return values
ProductClassgetStock()
Get stock.
public
getStock(
)
: string|null
Return values
string|nullsetStockUnlimited()
Set stockUnlimited.
public
setStockUnlimited(
$stockUnlimited :
bool
)
: ProductClass
Parameters
- $stockUnlimited : bool
Return values
ProductClassisStockUnlimited()
Get stockUnlimited.
public
isStockUnlimited(
)
: bool
Return values
boolsetSaleLimit()
Set saleLimit.
public
setSaleLimit(
[ $saleLimit :
string|null
= null ]
)
: ProductClass
Parameters
- $saleLimit : string|null = null
Return values
ProductClassgetSaleLimit()
Get saleLimit.
public
getSaleLimit(
)
: string|null
Return values
string|nullsetPrice01()
Set price01.
public
setPrice01(
[ $price01 :
string|null
= null ]
)
: ProductClass
Parameters
- $price01 : string|null = null
Return values
ProductClassgetPrice01()
Get price01.
public
getPrice01(
)
: string|null
Return values
string|nullsetPrice02()
Set price02.
public
setPrice02(
$price02 :
string
)
: ProductClass
Parameters
- $price02 : string
Return values
ProductClassgetPrice02()
Get price02.
public
getPrice02(
)
: string
Return values
stringsetDeliveryFee()
Set deliveryFee.
public
setDeliveryFee(
[ $deliveryFee :
string|null
= null ]
)
: ProductClass
Parameters
- $deliveryFee : string|null = null
Return values
ProductClassgetDeliveryFee()
Get deliveryFee.
public
getDeliveryFee(
)
: string|null
Return values
string|nullisVisible()
public
isVisible(
)
: bool
Return values
boolsetVisible()
public
setVisible(
$visible :
bool
)
: ProductClass
Parameters
- $visible : bool
Return values
ProductClasssetCreateDate()
Set createDate.
public
setCreateDate(
$createDate :
DateTime
)
: ProductClass
Parameters
- $createDate : DateTime
Return values
ProductClassgetCreateDate()
Get createDate.
public
getCreateDate(
)
: DateTime
Return values
DateTimesetUpdateDate()
Set updateDate.
public
setUpdateDate(
$updateDate :
DateTime
)
: ProductClass
Parameters
- $updateDate : DateTime
Return values
ProductClassgetUpdateDate()
Get updateDate.
public
getUpdateDate(
)
: DateTime
Return values
DateTimegetCurrencyCode()
Get currencyCode.
public
getCurrencyCode(
)
: string
Return values
stringsetCurrencyCode()
Set currencyCode.
public
setCurrencyCode(
[ $currencyCode :
string|null
= null ]
)
: $this
Parameters
- $currencyCode : string|null = null
Return values
$thissetProductStock()
Set productStock.
public
setProductStock(
[ $productStock :
ProductStock|null
= null ]
)
: ProductClass
Parameters
- $productStock : ProductStock|null = null
Return values
ProductClassgetProductStock()
Get productStock.
public
getProductStock(
)
: ProductStock|null
Return values
ProductStock|nullsetTaxRule()
Set taxRule.
public
setTaxRule(
[ $taxRule :
TaxRule|null
= null ]
)
: ProductClass
Parameters
- $taxRule : TaxRule|null = null
Return values
ProductClassgetTaxRule()
Get taxRule.
public
getTaxRule(
)
: TaxRule|null
Return values
TaxRule|nullsetProduct()
Set product.
public
setProduct(
[ $product :
Product|null
= null ]
)
: ProductClass
Parameters
- $product : Product|null = null
Return values
ProductClassgetProduct()
Get product.
public
getProduct(
)
: Product|null
Return values
Product|nullsetSaleType()
Set saleType.
public
setSaleType(
[ $saleType :
SaleType|null
= null ]
)
: ProductClass
Parameters
- $saleType : SaleType|null = null
Return values
ProductClassgetSaleType()
Get saleType.
public
getSaleType(
)
: SaleType|null
Return values
SaleType|nullsetClassCategory1()
Set classCategory1.
public
setClassCategory1(
[ $classCategory1 :
ClassCategory|null
= null ]
)
: ProductClass
Parameters
- $classCategory1 : ClassCategory|null = null
Return values
ProductClassgetClassCategory1()
Get classCategory1.
public
getClassCategory1(
)
: ClassCategory|null
Return values
ClassCategory|nullsetClassCategory2()
Set classCategory2.
public
setClassCategory2(
[ $classCategory2 :
ClassCategory|null
= null ]
)
: ProductClass
Parameters
- $classCategory2 : ClassCategory|null = null
Return values
ProductClassgetClassCategory2()
Get classCategory2.
public
getClassCategory2(
)
: ClassCategory|null
Return values
ClassCategory|nullsetDeliveryDuration()
Set deliveryDuration.
public
setDeliveryDuration(
[ $deliveryDuration :
DeliveryDuration|null
= null ]
)
: ProductClass
Parameters
- $deliveryDuration : DeliveryDuration|null = null
Return values
ProductClassgetDeliveryDuration()
Get deliveryDuration.
public
getDeliveryDuration(
)
: DeliveryDuration|null
Return values
DeliveryDuration|nullsetCreator()
Set creator.
public
setCreator(
[ $creator :
Member|null
= null ]
)
: ProductClass
Parameters
- $creator : Member|null = null
Return values
ProductClassgetCreator()
Get creator.
public
getCreator(
)
: Member|null
Return values
Member|nullsetPointRate()
Set pointRate
public
setPointRate(
$pointRate :
string
)
: ProductClass
Parameters
- $pointRate : string
Return values
ProductClassgetPointRate()
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], ...]