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

DomainRenewalQuantity::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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