We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getTotalCount
1 parent 40e2cd4 commit 280953bCopy full SHA for 280953b
1 file changed
code_samples/api/commerce/src/Command/CartCommand.php
@@ -54,7 +54,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
54
$cartsList = $this->cartService->findCarts($cartQuery);
55
56
$cartsList->getCarts(); // array of CartInterface objects
57
- $cartsList->getTotalCount(); // number of returned carts
+ $cartsList->getTotalCount(); // number of matching carts regardless of the limit
58
59
foreach ($cartsList as $cart) {
60
$output->writeln($cart->getIdentifier() . ': ' . $cart->getName());
0 commit comments