Updatedat.php 833 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Tax report resource model with aggregation by updated at
  8. *
  9. * @author Magento Core Team <core@magentocommerce.com>
  10. */
  11. namespace Magento\Tax\Model\ResourceModel\Report\Tax;
  12. class Updatedat extends \Magento\Tax\Model\ResourceModel\Report\Tax\Createdat
  13. {
  14. /**
  15. * Resource initialization
  16. *
  17. * @return void
  18. */
  19. protected function _construct()
  20. {
  21. $this->_init('tax_order_aggregated_updated', 'id');
  22. }
  23. /**
  24. * Aggregate Tax data by order updated at
  25. *
  26. * @param mixed $from
  27. * @param mixed $to
  28. * @return $this
  29. */
  30. public function aggregate($from = null, $to = null)
  31. {
  32. return $this->_aggregateByOrder('updated_at', $from, $to);
  33. }
  34. }