BankTypeAccount   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A toOptionArray() 0 5 1
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