public function PackageType::setDimensions in Commerce Shipping 8.2
Sets the package type dimensions.
Parameters
array $dimensions: An array with the following keys: length, width, height, unit.
Return value
$this
Overrides PackageTypeInterface::setDimensions
File
- src/Entity/ PackageType.php, line 96 
Class
- PackageType
- Defines the package type entity class.
Namespace
Drupal\commerce_shipping\EntityCode
public function setDimensions(array $dimensions) {
  $this->dimensions = $dimensions;
  return $this;
}