Completed
Push — master ( bfe327...f8a59f )
by Dmitry
05:34
created

PlanFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createPrototype() 0 4 1
1
<?php
2
3
4
namespace hiqdev\billing\hiapi\repositories;
5
6
use hiqdev\php\billing\Plan;
7
use ReflectionClass;
8
9
class PlanFactory
10
{
11
    protected $class = Plan::class;
12
13
    public function createPrototype()
14
    {
15
        return (new ReflectionClass($this->class))->newInstanceWithoutConstructor();
16
    }
17
}
18