woocommerce-paypal-payments/.psalm/gzd.php

77 lines
1.5 KiB
PHP
Raw Normal View History

2022-10-03 19:42:49 +04:00
<?php
2022-10-04 15:51:30 +04:00
namespace Vendidero\Germanized\Shipments {
2022-10-03 19:42:49 +04:00
2022-10-04 15:51:30 +04:00
use WC_Data;
use WC_Order;
2022-10-03 19:42:49 +04:00
2022-10-04 15:51:30 +04:00
abstract class Shipment extends WC_Data {
2022-10-03 19:42:49 +04:00
2022-10-04 15:51:30 +04:00
/**
* 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' ) {
}
2022-10-11 18:08:59 +04:00
public function add_note( $note, $added_by_user = false ) {
}
2023-07-31 18:08:00 +04:00
/**
* 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' ) {
}
2022-10-03 19:42:49 +04:00
}
2022-10-04 15:51:30 +04:00
}
2022-10-03 19:42:49 +04:00