Mygento_Payture_Model_Source_Tax   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A toOptionArray() 0 11 1
1
<?php
2
3
/**
4
 *
5
 *
6
 * @category Mygento
7
 * @package Mygento_Payture
8
 * @copyright 2017 NKS LLC. (https://www.mygento.ru)
9
 */
10
class Mygento_Payture_Model_Source_Tax
11
{
12
13
    public function toOptionArray()
14
    {
15
        return [
16
            ['value' => 1, 'label' => Mage::helper('payture')->__('Ставка НДС 18%')],
17
            ['value' => 2, 'label' => Mage::helper('payture')->__('Ставка НДС 10%')],
18
            ['value' => 3, 'label' => Mage::helper('payture')->__('Ставка НДС расч. 18/118')],
19
            ['value' => 4, 'label' => Mage::helper('payture')->__('Ставка НДС расч. 10/110')],
20
            ['value' => 5, 'label' => Mage::helper('payture')->__('Ставка НДС 0%')],
21
            ['value' => 6, 'label' => Mage::helper('payture')->__('НДС не облагается')]
22
        ];
23
    }
24
}
25