AdjustmentInterface
interface AdjustmentInterface
Interface AdjustmentInterface
Methods
Get adjustment subject.
Get the label.
Set label.
Get short description of adjustment.
Set short description of adjustment.
Get the adjustment amount.
Set the amount.
Is adjustment neutral?
Modify the neutrality of the adjustment.
Is charge?
Is credit?
Is adjustment locked?
Lock the adjustment.
Unlock the adjustment.
Details
at line 23
AdjustableInterface
getAdjustable()
Get adjustment subject.
at line 30
setAdjustable(AdjustableInterface $adjustable = null)
Set adjustable.
at line 37
string
getLabel()
Get the label.
at line 44
setLabel(string $label)
Set label.
at line 51
string
getDescription()
Get short description of adjustment.
at line 58
setDescription(string $description)
Set short description of adjustment.
at line 65
int
getAmount()
Get the adjustment amount.
at line 72
setAmount(int $amount)
Set the amount.
at line 79
bool
isNeutral()
Is adjustment neutral?
at line 86
setNeutral(bool $neutral)
Modify the neutrality of the adjustment.
at line 95
bool
isCharge()
Is charge?
Adjustments with amount < 0 are called "charges".
at line 104
bool
isCredit()
Is credit?
Adjustments with amount > 0 are called "credits".
at line 111
bool
isLocked()
Is adjustment locked?
at line 116
lock()
Lock the adjustment.
at line 121
unlock()
Unlock the adjustment.