TaxRule extends AbstractEntity
TaxRule
Tags
Table of Contents
DEFAULT_TAX_RULE_ID | 1 | |
---|---|---|
$sort_no | int | |
$id | int | |
$tax_rate | string | |
$tax_adjust | string | |
$apply_date | DateTime | |
$create_date | DateTime | |
$update_date | DateTime | |
$ProductClass | ProductClass | |
$Creator | Member | |
$Country | Country | |
$Pref | Pref | |
$Product | Product | |
$RoundingType | RoundingType | |
$AnnotationReader | ||
isDefaultTaxRule() | is default | bool |
setSortNo() | Set sortNo | TaxRule |
getSortNo() | Get sortNo | int |
getId() | Get id. | int |
setTaxRate() | Set taxRate. | TaxRule |
getTaxRate() | Get taxRate. | string |
setTaxAdjust() | Set taxAdjust. | TaxRule |
getTaxAdjust() | Get taxAdjust. | string |
setApplyDate() | Set applyDate. | TaxRule |
getApplyDate() | Get applyDate. | DateTime |
setCreateDate() | Set createDate. | TaxRule |
getCreateDate() | Get createDate. | DateTime |
setUpdateDate() | Set updateDate. | TaxRule |
getUpdateDate() | Get updateDate. | DateTime |
setProductClass() | Set productClass. | TaxRule |
getProductClass() | Get productClass. | ProductClass|null |
setCreator() | Set creator. | TaxRule |
getCreator() | Get creator. | Member|null |
setCountry() | Set country. | TaxRule |
getCountry() | Get country. | Country|null |
setPref() | Set pref. | TaxRule |
getPref() | Get pref. | Pref|null |
setProduct() | Set product. | TaxRule |
getProduct() | Get product. | Product|null |
setRoundingType() | Set roundingType. | TaxRule |
getRoundingType() | Get roundingType. | RoundingType|null |
compareTo() | 自分自身と Target を比較し, ソートのための数値を返す. | int |
isProductTaxRule() | 商品別税率設定が適用されているかどうか. | bool |
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 |
Constants
DEFAULT_TAX_RULE_ID
public
int
$DEFAULT_TAX_RULE_ID
= 1
Properties
$sort_no
private
int
$sort_no
$id
private
int
$id
Tags
$tax_rate
private
string
$tax_rate
= ""
Tags
$tax_adjust
private
string
$tax_adjust
= ""
Tags
$apply_date
private
DateTime
$apply_date
Tags
$create_date
private
DateTime
$create_date
Tags
$update_date
private
DateTime
$update_date
Tags
$ProductClass
private
ProductClass
$ProductClass
Tags
$Creator
private
Member
$Creator
Tags
$Country
private
Country
$Country
Tags
$Pref
private
Pref
$Pref
Tags
$Product
private
Product
$Product
Tags
$RoundingType
private
RoundingType
$RoundingType
Tags
$AnnotationReader
private
mixed
$AnnotationReader
Methods
isDefaultTaxRule()
is default
public
isDefaultTaxRule(
)
: bool
Return values
boolsetSortNo()
Set sortNo
public
setSortNo(
$sortNo :
int
)
: TaxRule
Parameters
- $sortNo : int
Return values
TaxRulegetSortNo()
Get sortNo
public
getSortNo(
)
: int
Return values
intgetId()
Get id.
public
getId(
)
: int
Return values
intsetTaxRate()
Set taxRate.
public
setTaxRate(
$taxRate :
string
)
: TaxRule
Parameters
- $taxRate : string
Return values
TaxRulegetTaxRate()
Get taxRate.
public
getTaxRate(
)
: string
Return values
stringsetTaxAdjust()
Set taxAdjust.
public
setTaxAdjust(
$taxAdjust :
string
)
: TaxRule
Parameters
- $taxAdjust : string
Return values
TaxRulegetTaxAdjust()
Get taxAdjust.
public
getTaxAdjust(
)
: string
Return values
stringsetApplyDate()
Set applyDate.
public
setApplyDate(
$applyDate :
DateTime
)
: TaxRule
Parameters
- $applyDate : DateTime
Return values
TaxRulegetApplyDate()
Get applyDate.
public
getApplyDate(
)
: DateTime
Return values
DateTimesetCreateDate()
Set createDate.
public
setCreateDate(
$createDate :
DateTime
)
: TaxRule
Parameters
- $createDate : DateTime
Return values
TaxRulegetCreateDate()
Get createDate.
public
getCreateDate(
)
: DateTime
Return values
DateTimesetUpdateDate()
Set updateDate.
public
setUpdateDate(
$updateDate :
DateTime
)
: TaxRule
Parameters
- $updateDate : DateTime
Return values
TaxRulegetUpdateDate()
Get updateDate.
public
getUpdateDate(
)
: DateTime
Return values
DateTimesetProductClass()
Set productClass.
public
setProductClass(
[ $productClass :
ProductClass|null
= null ]
)
: TaxRule
Parameters
- $productClass : ProductClass|null = null
Return values
TaxRulegetProductClass()
Get productClass.
public
getProductClass(
)
: ProductClass|null
Return values
ProductClass|nullsetCreator()
Set creator.
public
setCreator(
[ $creator :
Member|null
= null ]
)
: TaxRule
Parameters
- $creator : Member|null = null
Return values
TaxRulegetCreator()
Get creator.
public
getCreator(
)
: Member|null
Return values
Member|nullsetCountry()
Set country.
public
setCountry(
[ $country :
Country|null
= null ]
)
: TaxRule
Parameters
- $country : Country|null = null
Return values
TaxRulegetCountry()
Get country.
public
getCountry(
)
: Country|null
Return values
Country|nullsetPref()
Set pref.
public
setPref(
[ $pref :
Pref|null
= null ]
)
: TaxRule
Parameters
- $pref : Pref|null = null
Return values
TaxRulegetPref()
Get pref.
public
getPref(
)
: Pref|null
Return values
Pref|nullsetProduct()
Set product.
public
setProduct(
[ $product :
Product|null
= null ]
)
: TaxRule
Parameters
- $product : Product|null = null
Return values
TaxRulegetProduct()
Get product.
public
getProduct(
)
: Product|null
Return values
Product|nullsetRoundingType()
Set roundingType.
public
setRoundingType(
[ $RoundingType :
RoundingType
= null ]
)
: TaxRule
Parameters
- $RoundingType : RoundingType = null
Return values
TaxRulegetRoundingType()
Get roundingType.
public
getRoundingType(
)
: RoundingType|null
Return values
RoundingType|nullcompareTo()
自分自身と Target を比較し, ソートのための数値を返す.
public
compareTo(
$Target :
TaxRule
)
: int
以下の順で比較し、
同一であれば 0 自分の方が大きければ正の整数 小さければ負の整数を返す.
- 商品別税率が有効
- apply_date
- sort_no
このメソッドは usort() 関数などで使用する.
Parameters
- $Target : TaxRule
比較対象の TaxRule
Return values
intisProductTaxRule()
商品別税率設定が適用されているかどうか.
public
isProductTaxRule(
)
: bool
Return values
bool —商品別税率が適用されている場合 true
offsetExists()
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], ...]