<?php

namespace Autogedal\Retur\Model\Provider;

/**
 * OptionProvider
 */
class StatusProvider implements \Magento\Framework\Data\OptionSourceInterface
{
    public const NOU = 0;
    public const IN_LIVRARE = 1;
    public const SOLUTIONAT_CU_DISCOUNT = 2;
    public const ACCEPTAT = 3;
    public const RESPINS = 4;
    public const STORNAT = 5;
    public const PLATIT = 6;
    public const FINALIZAT = 7;
    public const RETUR_ANULAT = 8;

    /**
     * @var array|null
     */
    protected $options;

    /**
     * @return array|null
     */
    public function toOptionArray()
    {
        if (!$this->options) {
            $this->options = [
                ['value' => self::NOU, 'label' => __('NOU')],
                ['value' => self::IN_LIVRARE, 'label' => __('IN LIVRARE')],
                ['value' => self::SOLUTIONAT_CU_DISCOUNT, 'label' => __('SOLUTIONAT CU DISCOUNT')],
                ['value' => self::ACCEPTAT, 'label' => __('ACCEPTAT')],
                ['value' => self::RESPINS, 'label' => __('RESPINS')],
                ['value' => self::STORNAT, 'label' => __('STORNAT')],
                ['value' => self::PLATIT, 'label' => __('PLATIT')],
                ['value' => self::FINALIZAT, 'label' => __('FINALIZAT')],
                ['value' => self::RETUR_ANULAT, 'label' => __('RETUR_ANULAT')],
            ];
        }

        return $this->options;
    }
}
