You are here

public function Adjustment::isPositive in Commerce Core 8.2

Gets whether the adjustment is positive.

Return value

bool TRUE if the adjustment is positive, FALSE otherwise.

File

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

Class

Adjustment
Represents an adjustment.

Namespace

Drupal\commerce_order

Code

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