interface AdjustableInterface

Interface AdjustableInterface

Methods

Collection|AdjustmentInterface[]
getAdjustments(null|string $type = null)

Return all adjustments attached to adjustable subject.

addAdjustment(AdjustmentInterface $adjustment)

Add adjustment.

removeAdjustment(AdjustmentInterface $adjustment)

Remove adjustment.

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.

Parameters

null|string $type

Return Value

Collection|AdjustmentInterface[]

at line 34
addAdjustment(AdjustmentInterface $adjustment)

Add adjustment.

Parameters

AdjustmentInterface $adjustment

at line 41
removeAdjustment(AdjustmentInterface $adjustment)

Remove adjustment.

Parameters

AdjustmentInterface $adjustment

at line 50
integer getAdjustmentsTotal(null|string $type = null)

Get adjustments total.

Parameters

null|string $type

Return Value

integer

at line 57
removeAdjustments(string $type)

Remove adjustment.

Parameters

string $type

at line 62
clearAdjustments()

Clears all adjustments.

at line 67
calculateAdjustmentsTotal()

Calculate adjustments total.