Improve docblock comments in various WC_Product classes

* Added comments to methods that was `method function`
This commit is contained in:
Fredrik Forsmo 2016-01-06 16:15:00 +01:00
parent 870ecfea11
commit f1920cb882
4 changed files with 7 additions and 5 deletions

View File

@ -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())

View File

@ -21,7 +21,7 @@ class WC_Product_Grouped extends WC_Product {
public $children;
/**
* __construct function.
* Constructor.
*
* @access public
* @param mixed $product

View File

@ -148,7 +148,7 @@ class WC_Product_Variable extends WC_Product {
}
/**
* get_child function.
* Get child product.
*
* @access public
* @param mixed $child_id

View File

@ -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