You are here

public function USPSRateRequestBase::__construct in Commerce USPS 8

USPSRateRequest constructor.

Parameters

\Drupal\commerce_usps\USPSShipmentInterface $usps_shipment: The USPS shipment object.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

File

src/USPSRateRequestBase.php, line 69

Class

USPSRateRequestBase
Class USPSRateRequest.

Namespace

Drupal\commerce_usps

Code

public function __construct(USPSShipmentInterface $usps_shipment, EventDispatcherInterface $event_dispatcher) {
  $this->uspsShipment = $usps_shipment;
  $this->eventDispatcher = $event_dispatcher;
}