<?php
declare(strict_types=1);

namespace Leanpay\Payment\Model\Config\Source;

use Leanpay\Payment\Helper\Data;
use Magento\Framework\Data\OptionSourceInterface;

class Modes implements OptionSourceInterface
{
    /**
     * Return array of leanpay environment
     *
     * @return array
     */
    public function toOptionArray(): array
    {
        return [
            [
                'value' => Data::LEANPAY_API_MODE_DEV,
                'label' => __('Demo')
            ],

            [
                'value' => Data::LEANPAY_API_MODE_LIVE,
                'label' => __('Production')
            ],
        ];
    }
}
