class TaxRule extends AbstractEntity

TaxRule

Constants

DEFAULT_TAX_RULE_ID

Methods

offsetExists($offset)

No description

offsetSet($offset, $value)

No description

offsetGet($offset)

No description

offsetUnset($offset)

No description

setPropertiesFromArray(array $arrProps, array $excludeAttribute = array(), ReflectionClass $parentClass = null)

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

array
toArray(array $excludeAttribute = array(), ReflectionClass $parentClass = null)

プロパティの値を連想配列で返します.

object
copyProperties(object $srcObject, array $excludeAttribute = array())

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

bool
isDefaultTaxRule()

is default

setRank(integer $rank)

Set rank

integer
getRank()

Get rank

integer
getId()

Get id

setTaxRate(string $taxRate)

Set tax_rate

string
getTaxRate()

Get tax_rate

setTaxAdjust(string $taxAdjust)

Set tax_adjust

string
getTaxAdjust()

Get tax_adjust

setApplyDate(DateTime $applyDate)

Set apply_date

getApplyDate()

Get apply_date

setDelFlg(integer $delFlg)

Set del_flg

integer
getDelFlg()

Get del_flg

setCreateDate(DateTime $createDate)

Set create_date

getCreateDate()

Get create_date

setUpdateDate(DateTime $updateDate)

Set update_date

getUpdateDate()

Get update_date

setCreator(Member $creator)

Set Creator

getCreator()

Get Creator

setCountry(Country $country = null)

Set Country

getCountry()

Get Country

setPref(Pref $pref = null)

Set Pref

getPref()

Get Pref

setProduct(Product $product = null)

Set Product

getProduct()

Get Product

setProductClass(ProductClass $productClass = null)

Set ProductClass

getProductClass()

Get ProductClass

setCalcRule(Taxrule $calcRule = null)

Set CalcRule

getCalcRule()

Get CalcRule

integer
compareTo(TaxRule $Target)

自分自身と Target を比較し, ソートのための数値を返す.

Details

in AbstractEntity at line 32
offsetExists($offset)

Parameters

$offset

in AbstractEntity at line 39
offsetSet($offset, $value)

Parameters

$offset
$value

in AbstractEntity at line 43
offsetGet($offset)

Parameters

$offset

in AbstractEntity at line 54
offsetUnset($offset)

Parameters

$offset

in AbstractEntity at line 66
setPropertiesFromArray(array $arrProps, array $excludeAttribute = array(), ReflectionClass $parentClass = null)

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

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

Parameters

array $arrProps
array $excludeAttribute
ReflectionClass $parentClass

in AbstractEntity at line 99
array toArray(array $excludeAttribute = array(), ReflectionClass $parentClass = null)

プロパティの値を連想配列で返します.

DBを更新する場合などで, 連想配列の値を取得したい場合に使用します.

Parameters

array $excludeAttribute
ReflectionClass $parentClass

Return Value

array 連想配列のプロパティの値

in AbstractEntity at line 139
object copyProperties(object $srcObject, array $excludeAttribute = array())

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

Parameters

object $srcObject コピー元のオブジェクト
array $excludeAttribute 除外したいフィールド名の配列

Return Value

object

at line 47
bool isDefaultTaxRule()

is default

Return Value

bool

at line 58
TaxRule setRank(integer $rank)

Set rank

Parameters

integer $rank

Return Value

TaxRule

at line 70
integer getRank()

Get rank

Return Value

integer

at line 146
integer getId()

Get id

Return Value

integer

at line 157
TaxRule setTaxRate(string $taxRate)

Set tax_rate

Parameters

string $taxRate

Return Value

TaxRule

at line 169
string getTaxRate()

Get tax_rate

Return Value

string

at line 180
TaxRule setTaxAdjust(string $taxAdjust)

Set tax_adjust

Parameters

string $taxAdjust

Return Value

TaxRule

at line 192
string getTaxAdjust()

Get tax_adjust

Return Value

string

at line 203
TaxRule setApplyDate(DateTime $applyDate)

Set apply_date

Parameters

DateTime $applyDate

Return Value

TaxRule

at line 215
DateTime getApplyDate()

Get apply_date

Return Value

DateTime

at line 226
TaxRule setDelFlg(integer $delFlg)

Set del_flg

Parameters

integer $delFlg

Return Value

TaxRule

at line 238
integer getDelFlg()

Get del_flg

Return Value

integer

at line 249
TaxRule setCreateDate(DateTime $createDate)

Set create_date

Parameters

DateTime $createDate

Return Value

TaxRule

at line 261
DateTime getCreateDate()

Get create_date

Return Value

DateTime

at line 272
TaxRule setUpdateDate(DateTime $updateDate)

Set update_date

Parameters

DateTime $updateDate

Return Value

TaxRule

at line 284
DateTime getUpdateDate()

Get update_date

Return Value

DateTime

at line 295
TaxRule setCreator(Member $creator)

Set Creator

Parameters

Member $creator

Return Value

TaxRule

at line 307
Member getCreator()

Get Creator

Return Value

Member

at line 318
TaxRule setCountry(Country $country = null)

Set Country

Parameters

Country $country

Return Value

TaxRule

at line 330
Country getCountry()

Get Country

Return Value

Country

at line 341
TaxRule setPref(Pref $pref = null)

Set Pref

Parameters

Pref $pref

Return Value

TaxRule

at line 353
Pref getPref()

Get Pref

Return Value

Pref

at line 364
TaxRule setProduct(Product $product = null)

Set Product

Parameters

Product $product

Return Value

TaxRule

at line 376
Product getProduct()

Get Product

Return Value

Product

at line 387
TaxRule setProductClass(ProductClass $productClass = null)

Set ProductClass

Parameters

ProductClass $productClass

Return Value

TaxRule

at line 399
ProductClass getProductClass()

Get ProductClass

Return Value

ProductClass

at line 410
TaxRule setCalcRule(Taxrule $calcRule = null)

Set CalcRule

Parameters

Taxrule $calcRule

Return Value

TaxRule

at line 422
Taxrule getCalcRule()

Get CalcRule

Return Value

Taxrule

at line 444
integer compareTo(TaxRule $Target)

自分自身と Target を比較し, ソートのための数値を返す.

以下の順で比較し、

同一であれば 0 自分の方が大きければ正の整数 小さければ負の整数を返す.

  1. apply_date
  2. rank

このメソッドは usort() 関数などで使用する.

Parameters

TaxRule $Target 比較対象の TaxRule

Return Value

integer