You are here

public function Shipment::setPackages in Ubercart 8.4

Sets the packages in this shipment.

Parameters

\Drupal\uc_fulfillment\Package[] $packages: An array of packages in this shipment.

Return value

$this

Overrides ShipmentInterface::setPackages

File

shipping/uc_fulfillment/src/Shipment.php, line 299

Class

Shipment
Defines the Shipment class.

Namespace

Drupal\uc_fulfillment

Code

public function setPackages(array $packages) {
  $this->packages = $packages;
  return $this;
}