refactor
This commit is contained in:
@@ -86,26 +86,15 @@ class Wiaas_Product_Category {
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if provided product is hardware
|
||||
* Determines if provided product type is product (hardware or software)
|
||||
* @param $product
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function is_hardware($product) {
|
||||
return self::_get_product_category_type($product) === 'hardware';
|
||||
public static function is_product($product) {
|
||||
return self::_get_product_category_type($product) === 'product';
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if provided product is software
|
||||
* @param $product
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function is_software($product) {
|
||||
return self::_get_product_category_type($product) === 'software';
|
||||
}
|
||||
|
||||
|
||||
|
||||
// PRIVATE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user