37 \Psr\Log\LoggerInterface
$logger,
38 \
Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate,
39 \
Magento\Reports\Model\FlagFactory $reportsFlagFactory,
46 $this->_createdAtFactory = $createdAtFactory;
47 $this->_updatedAtFactory = $updatedAtFactory;
66 $this->
_init(
'tax_order_aggregated_created',
'id');
76 public function aggregate($from =
null, $to =
null)
79 $createdAt = $this->_createdAtFactory->create();
81 $updatedAt = $this->_updatedAtFactory->create();
83 $createdAt->aggregate($from, $to);
84 $updatedAt->aggregate($from, $to);
__construct(\Magento\Framework\Model\ResourceModel\Db\Context $context, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, \Magento\Reports\Model\FlagFactory $reportsFlagFactory, \Magento\Framework\Stdlib\DateTime\Timezone\Validator $timezoneValidator, \Magento\Framework\Stdlib\DateTime\DateTime $dateTime, \Magento\Tax\Model\ResourceModel\Report\Tax\CreatedatFactory $createdAtFactory, \Magento\Tax\Model\ResourceModel\Report\Tax\UpdatedatFactory $updatedAtFactory, $connectionName=null)
_init($mainTable, $idFieldName)
_setFlagData($code, $value=null)