Flag.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Reports\Model;
  7. /**
  8. * Report Flag Model
  9. *
  10. * @author Magento Core Team <core@magentocommerce.com>
  11. * @api
  12. * @since 100.0.2
  13. */
  14. class Flag extends \Magento\Framework\Flag
  15. {
  16. const REPORT_ORDER_FLAG_CODE = 'report_order_aggregated';
  17. const REPORT_TAX_FLAG_CODE = 'report_tax_aggregated';
  18. const REPORT_SHIPPING_FLAG_CODE = 'report_shipping_aggregated';
  19. const REPORT_INVOICE_FLAG_CODE = 'report_invoiced_aggregated';
  20. const REPORT_REFUNDED_FLAG_CODE = 'report_refunded_aggregated';
  21. const REPORT_COUPONS_FLAG_CODE = 'report_coupons_aggregated';
  22. const REPORT_BESTSELLERS_FLAG_CODE = 'report_bestsellers_aggregated';
  23. const REPORT_PRODUCT_VIEWED_FLAG_CODE = 'report_product_viewed_aggregated';
  24. /**
  25. * Setter for flag code
  26. * @codeCoverageIgnore
  27. *
  28. * @param string $code
  29. * @return $this
  30. */
  31. public function setReportFlagCode($code)
  32. {
  33. $this->_flagCode = $code;
  34. return $this;
  35. }
  36. }