You are here

public function Adjustment::isNegative in Commerce Core 8.2

Gets whether the adjustment is negative.

Return value

bool TRUE if the adjustment is negative, FALSE otherwise.

File

modules/order/src/Adjustment.php, line 152

Class

Adjustment
Represents an adjustment.

Namespace

Drupal\commerce_order

Code

public function isNegative() : bool {
  return $this->amount
    ->getNumber() < 0;
}