elisei/pagbank-payment-magento

View on GitHub
Model/Adminhtml/Source/PixExpiration.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 Pix Expieration - Defines possible expirations for Pix.
 */
class PixExpiration implements ArrayInterface
{
    /**
     * Returns Options.
     *
     * @return array
     */
    public function toOptionArray(): array
    {
        return [
            '15'    => __('15 minutes'),
            '30'    => __('30 minutes - recommended'),
            '60'    => __('1 hour'),
            '720'   => __('12 hours'),
            '1440'  => __('24 hours'),
            '4320'  => __('72 hours'),
        ];
    }
}