File "ShipmentFactory.php"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-order-tracking/src/Shipment/ShipmentFactory.php
File size: 656 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* The ShipmentFactory.
*
* @package WooCommerce\PayPalCommerce\OrderTracking\Shipment
*/
declare(strict_types=1);
namespace WooCommerce\PayPalCommerce\OrderTracking\Shipment;
/**
* Class ShipmentFactory
*/
class ShipmentFactory implements ShipmentFactoryInterface {
/**
* {@inheritDoc}
*/
public function create_shipment(
int $wc_order_id,
string $capture_id,
string $tracking_number,
string $status,
string $carrier,
string $carrier_name_other,
array $line_items
): ShipmentInterface {
return new Shipment( $wc_order_id, $capture_id, $tracking_number, $status, $carrier, $carrier_name_other, $line_items );
}
}