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

GroupingPlan   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 5
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A convertToTarget() 0 3 1
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