Your IP : 216.73.216.43


Current Path : /home/rtorresani/www/vendor/magento/module-tax/Model/ResourceModel/Report/Tax/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/module-tax/Model/ResourceModel/Report/Tax/Updatedat.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

/**
 * Tax report resource model with aggregation by updated at
 *
 * @author      Magento Core Team <core@magentocommerce.com>
 */
namespace Magento\Tax\Model\ResourceModel\Report\Tax;

class Updatedat extends \Magento\Tax\Model\ResourceModel\Report\Tax\Createdat
{
    /**
     * Resource initialization
     *
     * @return void
     */
    protected function _construct()
    {
        $this->_init('tax_order_aggregated_updated', 'id');
    }

    /**
     * Aggregate Tax data by order updated at
     *
     * @param mixed $from
     * @param mixed $to
     * @return $this
     */
    public function aggregate($from = null, $to = null)
    {
        return $this->_aggregateByOrder('updated_at', $from, $to);
    }
}