Adjustment
class Adjustment implements AdjustmentInterface, PrimaryKeyInterface
Class Adjustment
Properties
| protected int | $id | ||
| protected Order | $order | ||
| protected OrderItem | $orderItem | ||
| protected string | $label | ||
| protected string | $description | ||
| protected float | $amount | ||
| protected bool | $neutral | ||
| protected bool | $locked | ||
| protected bool | $isFixedValue | ||
| protected DateTime | $createdAt | ||
| protected DateTime | $updatedAt |
Methods
Get id
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 adjustment locked?
Lock the adjustment.
Unlock the adjustment.
Is charge?
Is credit?
{@inheritdoc}
{@inheritdoc}
No description
No description
(PHP 5 >= 5.1.0)
String representation of object
(PHP 5 >= 5.1.0)
Constructs the object
Details
at line 145
integer
getId()
Get id
at line 154
AdjustableInterface
getAdjustable()
Get adjustment subject.
at line 170
setAdjustable(AdjustableInterface $adjustable = null)
Set adjustable.
at line 188
string
getLabel()
Get the label.
at line 196
setLabel(string $label)
Set label.
at line 206
string
getDescription()
Get short description of adjustment.
at line 214
setDescription(string $description)
Set short description of adjustment.
at line 224
int
getAmount()
Get the adjustment amount.
at line 232
setAmount(int $amount)
Set the amount.
at line 242
bool
isNeutral()
Is adjustment neutral?
at line 250
setNeutral(bool $neutral)
Modify the neutrality of the adjustment.
at line 260
bool
isLocked()
Is adjustment locked?
at line 268
lock()
Lock the adjustment.
at line 278
unlock()
Unlock the adjustment.
at line 288
bool
isCharge()
Is charge?
Adjustments with amount < 0 are called "charges".
at line 296
bool
isCredit()
Is credit?
Adjustments with amount > 0 are called "credits".
at line 305
getCreatedAt()
{@inheritdoc}
at line 313
setCreatedAt(DateTime $createdAt)
{@inheritdoc}
at line 323
getUpdatedAt()
{@inheritdoc}
at line 331
setUpdatedAt(DateTime $updatedAt)
{@inheritdoc}
at line 341
bool
isFixedValue()
at line 351
Adjustment
setIsFixedValue(bool $isFixedValue)
at line 366
string
serialize()
(PHP 5 >= 5.1.0)
String representation of object
at line 391
void
unserialize(string $serialized)
(PHP 5 >= 5.1.0)
Constructs the object