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 30a5c72 commit 82d7b09Copy full SHA for 82d7b09
1 file changed
code_samples/api/commerce/src/Command/CartCommand.php
@@ -79,7 +79,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
79
$cartsList = $this->cartService->findCarts($cartQuery);
80
81
$cartsList->getCarts(); // array of CartInterface objects
82
- $cartsList->getTotalCount(); // number of returned carts
+ $cartsList->getTotalCount(); // number of matching carts regardless of the limit
83
84
foreach ($cartsList as $cart) {
85
$output->writeln($cart->getIdentifier() . ': ' . $cart->getName());
0 commit comments