Completed
Push — master ( ef2c0c...0622f1 )
by Dmitry
17:35
created

Isp5ResourceDecorator   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 12
ccs 0
cts 8
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A displayTitle() 0 4 1
A displayPrepaidAmount() 0 4 2
1
<?php
2
3
namespace hipanel\modules\finance\models\decorators\server;
4
5
use Yii;
6
7
class Isp5ResourceDecorator extends IspResourceDecorator
8
{
9
    public function displayTitle()
10
    {
11
        return Yii::t('hipanel/server/order', 'ISP Manager 5');
12
    }
13
14
    public function displayPrepaidAmount()
15
    {
16
        return $this->getPrepaidQuantity() > 0 ? Yii::t('hipanel', 'Enabled') : Yii::t('hipanel', 'Disabled');
17
    }
18
}
19