You are here

public function ShipmentInterface::setWeight in Commerce Shipping 8.2

Sets the shipment weight.

Parameters

\Drupal\physical\Weight $weight: The shipment weight.

Return value

$this

1 method overrides ShipmentInterface::setWeight()
Shipment::setWeight in src/Entity/Shipment.php
Sets the shipment weight.

File

src/Entity/ShipmentInterface.php, line 244

Class

ShipmentInterface
Defines the interface for shipments.

Namespace

Drupal\commerce_shipping\Entity

Code

public function setWeight(Weight $weight);