You are here

public function USPSRateRequestEvent::__construct in Commerce USPS 8

RateRequestEvent constructor.

Parameters

\USPS\Rate $rate_request: The USPS rate request object.

\Drupal\commerce_shipping\Entity\ShipmentInterface $shipment: The Commerce Shipment entity.

File

src/Event/USPSRateRequestEvent.php, line 37

Class

USPSRateRequestEvent
Rate request event for USPS.

Namespace

Drupal\commerce_usps\Event

Code

public function __construct(Rate $rate_request, ShipmentInterface $shipment) {
  $this->rateRequest = $rate_request;
  $this->shipment = $shipment;
}