You are here

public function ShippingRate::setDeliveryDate in Commerce Shipping 8.2

Sets the delivery date.

Parameters

\Drupal\Core\Datetime\DrupalDateTime $delivery_date: The delivery date.

Return value

$this

File

src/ShippingRate.php, line 221

Class

ShippingRate
Represents a shipping rate.

Namespace

Drupal\commerce_shipping

Code

public function setDeliveryDate(DrupalDateTime $delivery_date) {
  $this->deliveryDate = $delivery_date;
  return $this;
}