public function Shipment::setShippingMethodId in Commerce Shipping 8.2
Sets the shipping method ID.
Parameters
int $shipping_method_id: The shipping method ID.
Return value
$this
Overrides ShipmentInterface::setShippingMethodId
File
- src/
Entity/ Shipment.php, line 183
Class
- Shipment
- Defines the shipment entity class.
Namespace
Drupal\commerce_shipping\EntityCode
public function setShippingMethodId($shipping_method_id) {
$this
->set('shipping_method', $shipping_method_id);
return $this;
}