Flag.php 1.07 KB
Newer Older
Ketan's avatar
Ketan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Magento\Reports\Model;

/**
 * Report Flag Model
 *
 * @author     Magento Core Team <core@magentocommerce.com>
 * @api
 * @since 100.0.2
 */
class Flag extends \Magento\Framework\Flag
{
    const REPORT_ORDER_FLAG_CODE = 'report_order_aggregated';

    const REPORT_TAX_FLAG_CODE = 'report_tax_aggregated';

    const REPORT_SHIPPING_FLAG_CODE = 'report_shipping_aggregated';

    const REPORT_INVOICE_FLAG_CODE = 'report_invoiced_aggregated';

    const REPORT_REFUNDED_FLAG_CODE = 'report_refunded_aggregated';

    const REPORT_COUPONS_FLAG_CODE = 'report_coupons_aggregated';

    const REPORT_BESTSELLERS_FLAG_CODE = 'report_bestsellers_aggregated';

    const REPORT_PRODUCT_VIEWED_FLAG_CODE = 'report_product_viewed_aggregated';

    /**
     * Setter for flag code
     * @codeCoverageIgnore
     *
     * @param string $code
     * @return $this
     */
    public function setReportFlagCode($code)
    {
        $this->_flagCode = $code;
        return $this;
    }
}