Rename countInstances and improve PHPDoc,

This commit is contained in:
Patrick Henninger
2020-12-27 21:19:22 +01:00
parent 786477b54f
commit c52235067f

View File

@@ -303,7 +303,7 @@ class Cart
} }
/** /**
* Get the number of items in the cart. * Get the total quantity of all CartItems in the cart.
* *
* @return int|float * @return int|float
*/ */
@@ -313,11 +313,12 @@ class Cart
} }
/** /**
* Get the number of items instances in the cart. * Get the amount of CartItems in the Cart.
* Keep in mind that this does NOT count quantity.
* *
* @return int|float * @return int|float
*/ */
public function countInstances() public function countItems()
{ {
return $this->getContent()->count(); return $this->getContent()->count();
} }