public function Package::setWeight in Ubercart 8.4
Sets the package weight.
Parameters
float $weight: The package weight.
Return value
$this
Overrides PackageInterface::setWeight
File
- shipping/
uc_fulfillment/ src/ Package.php, line 283
Class
- Package
- Defines the Package class.
Namespace
Drupal\uc_fulfillmentCode
public function setWeight($weight) {
$this->weight = $weight;
return $this;
}