You are here

public function Shipment::setOriginalAmount in Commerce Shipping 8.2

Sets the original amount.

Parameters

\Drupal\commerce_price\Price $original_amount: The original amount.

Return value

$this

Overrides ShipmentInterface::setOriginalAmount

File

src/Entity/Shipment.php, line 326

Class

Shipment
Defines the shipment entity class.

Namespace

Drupal\commerce_shipping\Entity

Code

public function setOriginalAmount(Price $original_amount) {
  $this
    ->set('original_amount', $original_amount);
  return $this;
}