GroupingPlan   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

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