<?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\Option\ArrayInterface;
use Aitoc\PreOrders\Api\Data\Source\PreOrderNoteScope as PreOrderNoteScopeSourceInterface;

/**
 * Class PreOrderNoteScope
 */
class PreOrderNoteScope implements ArrayInterface
{
    /**
     * Return options array
     *
     * @return array
     */
    public function toOptionArray()
    {
        $options = [
            [
                'value' => PreOrderNoteScopeSourceInterface::CATEGORY_PAGE_SCOPE,
                'label' => __('Category Page')
            ],
            [
                'value' => PreOrderNoteScopeSourceInterface::PRODUCT_PAGE_SCOPE,
                'label' => __('Product Page')
            ],
            [
                'value' => PreOrderNoteScopeSourceInterface::MINI_CART_SCOPE,
                'label' => __('Minicart')
            ],
            [
                'value' => PreOrderNoteScopeSourceInterface::CART_SCOPE,
                'label' => __('Shopping Cart')
            ],
//            [
//                'value' => PreOrderNoteScopeSourceInterface::CHECKOUT_SCOPE,
//                'label' => __('Checkout')
//            ],
            [
                'value' => PreOrderNoteScopeSourceInterface::SEARCH_RESULT_SCOPE,
                'label' => __('Search Result Page')
            ],
            [
                'value' => PreOrderNoteScopeSourceInterface::WISH_LIST_SCOPE,
                'label' => __('Wish List')
            ],
            [
                'value' => PreOrderNoteScopeSourceInterface::COMPARE_LIST_SCOPE,
                'label' => __('Compare List')
            ],
        ];

        return $options;
    }
}
