From c52235067f3df275fe9507dd3219ead8014e102e Mon Sep 17 00:00:00 2001 From: Patrick Henninger Date: Sun, 27 Dec 2020 21:19:22 +0100 Subject: [PATCH] Rename countInstances and improve PHPDoc, --- src/Cart.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Cart.php b/src/Cart.php index 5e9f3a6..7063879 100644 --- a/src/Cart.php +++ b/src/Cart.php @@ -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 */ @@ -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 */ - public function countInstances() + public function countItems() { return $this->getContent()->count(); }