You are here

public function ShipmentInterface::setAmount in Commerce Shipping 8.2

Sets the amount.

Parameters

\Drupal\commerce_price\Price $amount: The shipment amount.

Return value

$this

1 method overrides ShipmentInterface::setAmount()
Shipment::setAmount in src/Entity/Shipment.php
Sets the amount.

File

src/Entity/ShipmentInterface.php, line 285

Class

ShipmentInterface
Defines the interface for shipments.

Namespace

Drupal\commerce_shipping\Entity

Code

public function setAmount(Price $amount);