AbstractTotal.php 667 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Model\Order\Invoice\Total;
  7. /**
  8. * Base class for invoice total
  9. * @api
  10. * @author Magento Core Team <core@magentocommerce.com>
  11. * @since 100.0.2
  12. */
  13. abstract class AbstractTotal extends \Magento\Sales\Model\Order\Total\AbstractTotal
  14. {
  15. /**
  16. * Collect invoice subtotal
  17. *
  18. * @param \Magento\Sales\Model\Order\Invoice $invoice
  19. * @return $this
  20. * @SuppressWarnings(PHPMD.UnusedFormalParameter)
  21. */
  22. public function collect(\Magento\Sales\Model\Order\Invoice $invoice)
  23. {
  24. return $this;
  25. }
  26. }