Factory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
c 1
b 1
f 0
lcom 0
cbo 0
dl 0
loc 11
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 5 1
1
<?php
2
3
namespace Iris\SaleWrapper;
4
5
class Factory
6
{
7
    const PARTNER = 'Partner';
8
    const VENTURE = 'Venture';
9
10 1
    public static function create($name, \Iris\Manager $manager)
11
    {
12 1
        $className = 'Iris\SaleWrapper\\' . ucfirst($name);
13 1
        return new $className($manager);
14
    }
15
}
16