Summary.php 516 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Checkout\Model\Config\Source\Cart;
  7. class Summary implements \Magento\Framework\Option\ArrayInterface
  8. {
  9. /**
  10. * @return array
  11. * @codeCoverageIgnore
  12. */
  13. public function toOptionArray()
  14. {
  15. return [
  16. ['value' => 0, 'label' => __('Display number of items in cart')],
  17. ['value' => 1, 'label' => __('Display item quantities')]
  18. ];
  19. }
  20. }