public function ShippingRate::setAmount in Commerce Shipping 8.2
Sets the amount.
Parameters
\Drupal\commerce_price\Price $amount: The amount.
Return value
$this
File
- src/
ShippingRate.php, line 173
Class
- ShippingRate
- Represents a shipping rate.
Namespace
Drupal\commerce_shippingCode
public function setAmount(Price $amount) {
$this->amount = $amount;
return $this;
}