<?php
/**
 * @author Aitoc Team
 * @copyright Copyright (c) 2020 Aitoc (https://www.aitoc.com)
 * @package Aitoc_PreOrders
 */

/**
 * Copyright © 2018 Aitoc. All rights reserved.
 * Developed by Alex Yakimovich
 */

namespace Aitoc\PreOrders\Model\Config\Source;

use Magento\Framework\DataObject;
use Aitoc\PreOrders\Api\Data\Source\PaymentTypeInterface;

/**
 * Data source for 'Payment Type' setting.
 */
class PaymentType extends DataObject implements PaymentTypeInterface
{
    /**
     * Generate list of payment types
     *
     * @return array
     */
    public function toOptionArray()
    {
        return [
            [
                'value' => self::TYPE_NOTIFICATION,
                'label' => 'Pre-Order In Stock Notification'
            ],
            [
                'value' => self::TYPE_INSTANT_PAYMENT,
                'label' => 'Instant Payments'
            ],
        ];
    }
}
