AdjustableInterface
interface AdjustableInterface
Interface AdjustableInterface
Methods
Collection|AdjustmentInterface[]
getAdjustments(null|string $type = null)
Return all adjustments attached to adjustable subject.
integer
getAdjustmentsTotal(null|string $type = null)
Get adjustments total.
removeAdjustments(string $type)
Remove adjustment.
clearAdjustments()
Clears all adjustments.
calculateAdjustmentsTotal()
Calculate adjustments total.
Details
at line 27
Collection|AdjustmentInterface[]
getAdjustments(null|string $type = null)
Return all adjustments attached to adjustable subject.
at line 34
addAdjustment(AdjustmentInterface $adjustment)
Add adjustment.
at line 41
removeAdjustment(AdjustmentInterface $adjustment)
Remove adjustment.
at line 50
integer
getAdjustmentsTotal(null|string $type = null)
Get adjustments total.
at line 57
removeAdjustments(string $type)
Remove adjustment.
at line 62
clearAdjustments()
Clears all adjustments.
at line 67
calculateAdjustmentsTotal()
Calculate adjustments total.