Conditions | 2 |
Paths | 2 |
Total Lines | 20 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
46 | protected function suggestionTypesByObject() |
||
47 | { |
||
48 | switch ($this->model->tariff_type) { |
||
49 | case Sale::SALE_TYPE_SERVER: |
||
50 | return [ |
||
51 | [ |
||
52 | 'type' => 'default', |
||
53 | 'label' => Yii::t('hipanel.finance.price', 'Main prices'), |
||
54 | 'icon' => 'fa-plus', |
||
55 | ], |
||
56 | [ |
||
57 | 'type' => 'parts', |
||
58 | 'label' => Yii::t('hipanel.finance.price', 'Part prices'), |
||
59 | 'icon' => 'fa-hdd-o', |
||
60 | ] |
||
61 | ]; |
||
62 | } |
||
63 | |||
64 | return []; |
||
65 | } |
||
66 | } |
||
67 |