| Current Path : /home/rtorresani/www/app/code/Amasty/Rewards/Model/Config/Source/ |
| Current File : //home/rtorresani/www/app/code/Amasty/Rewards/Model/Config/Source/RedemptionLimitTypes.php |
<?php
/**
* @author Amasty Team
* @copyright Copyright (c) 2023 Amasty (https://www.amasty.com)
* @package Reward Points Base for Magento 2
*/
namespace Amasty\Rewards\Model\Config\Source;
use Magento\Framework\Option\ArrayInterface;
class RedemptionLimitTypes implements ArrayInterface
{
public const NO_LIMIT = 0;
public const LIMIT_AMOUNT = 1;
public const LIMIT_PERCENT = 2;
/**
* @return array
*/
public function toOptionArray()
{
$options = [
[
'value' => self::NO_LIMIT,
'label' => __('No')
],
[
'value' => self::LIMIT_AMOUNT,
'label' => __('Yes (amount in reward points)')
],
[
'value' => self::LIMIT_PERCENT,
'label' => __('Yes (percent of checkout sum)')
]
];
return $options;
}
}