ReleaseType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A toOptionArray() 0 6 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
declare(strict_types=1);
9
10
namespace Getnet\SplitExampleMagento\Model\Source;
11
12
use Magento\Framework\Option\ArrayInterface;
13
14
/**
15
 * Class ReleaseType - Defines release type.
16
 */
17
class ReleaseType 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

17
class ReleaseType 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...
18
{
19
    /**
20
     * Returns Options.
21
     *
22
     * @return array
23
     */
24
    public function toOptionArray(): array
25
    {
26
        return [
27
            'not_applicable' => __('Not Applicable'),
28
            'cron'           => __('Cron and Manual Release'),
29
            'manual_release' => __('Manual Release'),
30
        ];
31
    }
32
}
33