elisei/pagbank-payment-magento

View on GitHub
Model/Adminhtml/Source/TypeApp.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * PagBank Payment Magento Module.
 *
 * Copyright © 2023 PagBank. All rights reserved.
 *
 * @author    Bruno Elisei <brunoelisei@o2ti.com>
 * @license   See LICENSE for license details.
 */

namespace PagBank\PaymentMagento\Model\Adminhtml\Source;

use Magento\Framework\Option\ArrayInterface;

/**
 * Class Type App - Defines the types of type App.
 */
class TypeApp implements ArrayInterface
{
    /**
     * Returns Options.
     *
     * @return array
     */
    public function toOptionArray(): array
    {
        return [
            'account'   => __('Set in your Account'),
            'd14'       => __('Receive within 14 days'),
            'd30'       => __('Receive within 30 days'),
        ];
    }
}