| Current Path : /var/www/www.indacotrentino.com/www/app/code/Amasty/Rewards/Model/Rule/ |
| Current File : /var/www/www.indacotrentino.com/www/app/code/Amasty/Rewards/Model/Rule/StoresOptionsProvider.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\Rule;
class StoresOptionsProvider implements \Magento\Framework\Data\OptionSourceInterface
{
/**
* @var \Magento\Store\Model\System\Store
*/
private $store;
public function __construct(\Magento\Store\Model\System\Store $store)
{
$this->store = $store;
}
/**
* @return array
*/
public function toOptionArray()
{
return $this->store->getWebsiteValuesForForm();
}
}