public function USPSShipmentEvent::__construct in Commerce USPS 8
RateRequestEvent constructor.
Parameters
\USPS\RatePackage $usps_package: The USPS rate package object.
\Drupal\commerce_shipping\Entity\ShipmentInterface $commerce_shipment: The Commerce Shipment entity.
File
- src/
Event/ USPSShipmentEvent.php, line 36
Class
- USPSShipmentEvent
- Rate request event for USPS.
Namespace
Drupal\commerce_usps\EventCode
public function __construct(RatePackage $usps_package, ShipmentInterface $commerce_shipment) {
$this->usps_package = $usps_package;
$this->commerce_shipment = $commerce_shipment;
}