Update some docblocks with proper parameters
This commit is contained in:
parent
b0f190fa1d
commit
2d4b7356df
|
@ -210,7 +210,7 @@ abstract class Abstract_WC_Order_Data_Store_CPT extends WC_Data_Store_WP impleme
|
|||
/**
|
||||
* Read order data. Can be overridden by child classes to load other props.
|
||||
*
|
||||
* @param WC_Order
|
||||
* @param WC_Order $order
|
||||
* @param object $post_object
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -278,7 +278,7 @@ abstract class Abstract_WC_Order_Data_Store_CPT extends WC_Data_Store_WP impleme
|
|||
/**
|
||||
* Clear any caches.
|
||||
*
|
||||
* @param WC_Order
|
||||
* @param WC_Order $order
|
||||
* @since 3.0.0
|
||||
*/
|
||||
protected function clear_caches( &$order ) {
|
||||
|
@ -323,7 +323,7 @@ abstract class Abstract_WC_Order_Data_Store_CPT extends WC_Data_Store_WP impleme
|
|||
/**
|
||||
* Remove all line items (products, coupons, shipping, taxes) from the order.
|
||||
*
|
||||
* @param WC_Order
|
||||
* @param WC_Order $order
|
||||
* @param string $type Order item type. Default null.
|
||||
*/
|
||||
public function delete_items( $order, $type = null ) {
|
||||
|
@ -341,7 +341,7 @@ abstract class Abstract_WC_Order_Data_Store_CPT extends WC_Data_Store_WP impleme
|
|||
/**
|
||||
* Get token ids for an order.
|
||||
*
|
||||
* @param WC_Order
|
||||
* @param WC_Order $order
|
||||
* @return array
|
||||
*/
|
||||
public function get_payment_token_ids( $order ) {
|
||||
|
@ -352,7 +352,7 @@ abstract class Abstract_WC_Order_Data_Store_CPT extends WC_Data_Store_WP impleme
|
|||
/**
|
||||
* Update token ids for an order.
|
||||
*
|
||||
* @param WC_Order
|
||||
* @param WC_Order $order
|
||||
* @param array $token_ids
|
||||
*/
|
||||
public function update_payment_token_ids( $order, $token_ids ) {
|
||||
|
|
|
@ -82,7 +82,7 @@ class WC_Order_Data_Store_CPT extends Abstract_WC_Order_Data_Store_CPT implement
|
|||
/**
|
||||
* Read order data. Can be overridden by child classes to load other props.
|
||||
*
|
||||
* @param WC_Order
|
||||
* @param WC_Order $order
|
||||
* @param object $post_object
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
@ -155,7 +155,7 @@ class WC_Order_Data_Store_CPT extends Abstract_WC_Order_Data_Store_CPT implement
|
|||
/**
|
||||
* Helper method that updates all the post meta for an order based on it's settings in the WC_Order class.
|
||||
*
|
||||
* @param WC_Order
|
||||
* @param WC_Order $order
|
||||
* @since 3.0.0
|
||||
*/
|
||||
protected function update_post_meta( &$order ) {
|
||||
|
@ -270,7 +270,7 @@ class WC_Order_Data_Store_CPT extends Abstract_WC_Order_Data_Store_CPT implement
|
|||
/**
|
||||
* Get amount already refunded.
|
||||
*
|
||||
* @param WC_Order
|
||||
* @param WC_Order $order
|
||||
* @return string
|
||||
*/
|
||||
public function get_total_refunded( $order ) {
|
||||
|
@ -290,7 +290,7 @@ class WC_Order_Data_Store_CPT extends Abstract_WC_Order_Data_Store_CPT implement
|
|||
/**
|
||||
* Get the total tax refunded.
|
||||
*
|
||||
* @param WC_Order
|
||||
* @param WC_Order $order
|
||||
* @return float
|
||||
*/
|
||||
public function get_total_tax_refunded( $order ) {
|
||||
|
@ -311,7 +311,7 @@ class WC_Order_Data_Store_CPT extends Abstract_WC_Order_Data_Store_CPT implement
|
|||
/**
|
||||
* Get the total shipping refunded.
|
||||
*
|
||||
* @param WC_Order
|
||||
* @param WC_Order $order
|
||||
* @return float
|
||||
*/
|
||||
public function get_total_shipping_refunded( $order ) {
|
||||
|
|
Loading…
Reference in New Issue