BankTypeAccount::toOptionArray()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * Copyright © Getnet. All rights reserved.
4
 *
5
 * @author    Bruno Elisei <[email protected]>
6
 * See LICENSE for license details.
7
 */
8
9
/**
10
 * Admin Source Sub Seller.
11
 */
12
declare(strict_types=1);
13
14
namespace Getnet\SubSellerMagento\Model\Config\Source;
15
16
use Magento\Framework\Option\ArrayInterface;
17
18
/**
19
 * Class BankTypeAccount - Defines bank type accounts.
20
 */
21
class BankTypeAccount implements ArrayInterface
0 ignored issues
show
Deprecated Code introduced by
The interface Magento\Framework\Option\ArrayInterface has been deprecated: 102.0.1 please use \Magento\Framework\Data\OptionSourceInterface instead. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

21
class BankTypeAccount implements /** @scrutinizer ignore-deprecated */ ArrayInterface

This interface has been deprecated. The supplier of the interface has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.

Loading history...
22
{
23
    /**
24
     * Returns Options.
25
     *
26
     * @return array
27
     */
28
    public function toOptionArray(): array
29
    {
30
        return [
31
            'C' => __('Checking'),
32
            'P' => __('Saving'),
33
        ];
34
    }
35
}
36