Completed
Push — master ( 0edfe9...83485f )
by Dmitry
08:42
created

SvdsTariffManager::buildForm()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 8
ccs 0
cts 0
cp 0
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
crap 2
1
<?php
2
3
namespace hipanel\modules\finance\logic;
4
5
use hipanel\modules\finance\forms\SvdsTariffForm;
6
7
class SvdsTariffManager extends VdsTariffManager
8
{
9
    /** @inheritdoc */
10
    public $type = 'svds';
11
12
    /**
13
     * @inheritdoc
14
     */
15
    protected function buildForm()
16
    {
17
        $this->form = new SvdsTariffForm([
18
            'scenario' => $this->scenario,
19
            'baseTariffs' => $this->baseTariffs,
20
            'tariff' => $this->tariff
21
        ]);
22
    }
23
}
24