Completed
Push — master ( b864d9...3fa98b )
by Dmitry
07:42 queued 03:17
created

DomainRenewalQuantity   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A format() 0 6 1
1
<?php
2
3
namespace hipanel\modules\finance\logic\bill;
4
5
use Yii;
6
7
class DomainRenewalQuantity extends DefaultQuantityFormatter
8
{
9
    /**
10
     * @inheritdoc
11
     */
12
    public function format(): string
13
    {
14
        return Yii::t('hipanel:finance', '{quantity, plural, one{# year} other{# years}}', [
15
            'quantity' => $this->getClientValue()
16
        ]);
17
    }
18
}
19