Completed
Push — master ( 104946...6683dc )
by Dmitry
02:26
created

GroupingPlan::convertToTarget()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace hiqdev\billing\hiapi\plan;
4
5
use hiqdev\billing\hiapi\target\tariff\TariffTarget;
6
use hiqdev\php\billing\plan\Plan;
7
use hiqdev\php\billing\target\TargetInterface;
8
9
class GroupingPlan extends Plan
10
{
11
    public function convertToTarget(): TargetInterface
12
    {
13
        return new TariffTarget($this->getId(), 'tariff');
14
    }
15
}
16