woocommerce-paypal-payments/.psalm/gzd.php
2023-07-31 18:08:00 +04:00

76 lines
1.5 KiB
PHP

<?php
namespace Vendidero\Germanized\Shipments {
use WC_Data;
use WC_Order;
abstract class Shipment extends WC_Data {
/**
* Return the shipment statuses without gzd- internal prefix.
*
* @param string $context View or edit context.
* @return string
*/
public function get_status( $context = 'view' ) {
}
/**
* Tries to fetch the order for the current shipment.
*
* @return bool|WC_Order|null
*/
abstract public function get_order();
/**
* Returns the shipment shipping provider.
*
* @param string $context What the value is for. Valid values are 'view' and 'edit'.
* @return string
*/
public function get_shipping_provider( $context = 'view' ) {
}
/**
* @return bool
*/
public function has_tracking() {
}
/**
* Returns the shipment tracking id.
*
* @param string $context What the value is for. Valid values are 'view' and 'edit'.
* @return string
*/
public function get_tracking_id( $context = 'view' ) {
}
public function add_note( $note, $added_by_user = false ) {
}
/**
* Return an array of items within this shipment.
*
* @return ShipmentItem[]
*/
public function get_items() {
}
}
class ShipmentItem extends WC_Data {
/**
* Get order ID this meta belongs to.
*
* @param string $context What the value is for. Valid values are 'view' and 'edit'.
* @return int
*/
public function get_order_item_id( $context = 'view' ) {
}
}
}