Improve docblock comments in various WC_Product classes
* Added comments to methods that was `method function`
This commit is contained in:
parent
870ecfea11
commit
f1920cb882
|
@ -18,7 +18,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
class WC_Product_Factory {
|
||||
|
||||
/**
|
||||
* get_product function.
|
||||
* Get product.
|
||||
*
|
||||
* @param bool $the_product (default: false)
|
||||
* @param array $args (default: array())
|
||||
|
|
|
@ -21,7 +21,7 @@ class WC_Product_Grouped extends WC_Product {
|
|||
public $children;
|
||||
|
||||
/**
|
||||
* __construct function.
|
||||
* Constructor.
|
||||
*
|
||||
* @access public
|
||||
* @param mixed $product
|
||||
|
|
|
@ -148,7 +148,7 @@ class WC_Product_Variable extends WC_Product {
|
|||
}
|
||||
|
||||
/**
|
||||
* get_child function.
|
||||
* Get child product.
|
||||
*
|
||||
* @access public
|
||||
* @param mixed $child_id
|
||||
|
|
|
@ -471,7 +471,9 @@ class WC_Product_Variation extends WC_Product {
|
|||
}
|
||||
|
||||
/**
|
||||
* set_stock_status function.
|
||||
* Set stock status.
|
||||
*
|
||||
* @param string $status
|
||||
*/
|
||||
public function set_stock_status( $status ) {
|
||||
$status = 'outofstock' === $status ? 'outofstock' : 'instock';
|
||||
|
@ -588,7 +590,7 @@ class WC_Product_Variation extends WC_Product {
|
|||
}
|
||||
|
||||
/**
|
||||
* is_on_backorder function.
|
||||
* Is on backorder?
|
||||
*
|
||||
* @param int $qty_in_cart (default: 0)
|
||||
* @return bool
|
||||
|
|
Loading…
Reference in New Issue