TotalsInterface.php 484 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Backend\Model\Widget\Grid;
  7. /**
  8. * @api
  9. * @since 100.0.2
  10. */
  11. interface TotalsInterface
  12. {
  13. /**
  14. * Return object contains totals for all items in collection
  15. *
  16. * @abstract
  17. * @param \Magento\Framework\Data\Collection $collection
  18. * @return \Magento\Framework\DataObject
  19. * @api
  20. */
  21. public function countTotals($collection);
  22. }